Skip to content

Instantly share code, notes, and snippets.

@jeznag
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeznag/e410cd515677a3f601b1 to your computer and use it in GitHub Desktop.
Save jeznag/e410cd515677a3f601b1 to your computer and use it in GitHub Desktop.
Connecting PHPUnit with PhantomJS
<?php
include_once 'TestScaffold.php';
class SpecialFormTest extends TestScaffold
{
public function testTitle() {
$cookies=$this->cookie();
$cookies->clear();
$this->url('http://localhost/special_form/public/' );
$this->assertEquals( 'Special Form', $this->title() );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment