Skip to content

Instantly share code, notes, and snippets.

@andriesss
Created September 25, 2012 18:36
Show Gist options
  • Save andriesss/3783623 to your computer and use it in GitHub Desktop.
Save andriesss/3783623 to your computer and use it in GitHub Desktop.
PHPUnit error with PHPunit_Selenium
<?php
class ReproduceTest extends \PHPUnit_Extensions_SeleniumTestCase
{
public function testFoo()
{
throw new \Exception();
}
}
/**
* Argument 5 passed to PHPUnit_Framework_Error::__construct() must be an instance of Exception, array given, called in PHPUnit/Extensions/SeleniumTestCase.php on line
* 1152 and defined
*
* PHPUnit 3.7.1, PHPUnit_Selenium 1.2.8
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment