2017 © Pedro Peláez
 

library phantomjs-test

Allows PHPUnit to test using PhantomJS.

image

buyplaytix/phantomjs-test

Allows PHPUnit to test using PhantomJS.

  • Tuesday, June 7, 2016
  • by tthomas48
  • Repository
  • 2 Watchers
  • 8 Stars
  • 1,090 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

phantomjs-test

Allows PHPUnit to test using PhantomJS., (*1)

A Basic Test

class BasicTest extends \PHPUnit_Framework_TestCase {
  public function setUp() {
    $this->driver = new \PhantomJS\Driver($this);
  }
  public function testPage() {
    $html = "<html><body>

Hi

, (*2)

";, (*3)

    $this->driver->assertTrue("h1 exists", "$('h1').length == 1");
    $this->driver->assertTrue("h1 value is Hi", "$('h1').html() == 'Hi'");
    $this->driver->test($html);
  }
}

The Versions

07/06 2016

dev-master

9999999-dev

Allows PHPUnit to test using PhantomJS.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.2

 

07/06 2016

2.0

2.0.0.0

Allows PHPUnit to test using PhantomJS.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.2