I want to use setUpBeforeClass () to set up a db connection and do some logging, but it is not called before my tests run (or at all, for that matter). I have the following:
class TestSetup extends PHPUnit_Extensions_SeleniumTestCase {
public static function setUpBeforeClass() {
}
protected function setUp() {
$this->setBrowserUrl('http://' . $this->deviceIp);
}
protected function testOne() {
}
protected function testTwo() {
}
}
I dug a little into PHPUnit / Frameworks / TestSuite.php and confirmed that on line 660 this $ this-> testCase is bool (false). But I could not understand if this should be true or where it should happen (except in __construct ()).
I am a little over my head, so any help would be greatly appreciated.
Let me know if I can provide any useful information.
Josh
source
share