I want to use setUpBeforeClass() to setup a db connection, and do some logging, but it is not being called before my tests execute (or at all, for that matter). I have the following:
class TestSetup extends PHPUnit_Extensions_SeleniumTestCase {
public static function setUpBeforeClass() {
//do some setup stuff here for all my tests
}
protected function setUp() {
$this->setBrowserUrl('http://' . $this->deviceIp);
}
protected function testOne() {
//do a test here
}
protected function testTwo() {
//do a test here
}
}
I did some digging into PHPUnit/Frameworks/TestSuite.php and have confirmed that on line 660 that $this->testCase is bool(false). But I couldn't figure out if it should be true or where that should happen (other than in __construct()).
I'm slightly over my head here, so any help would be greatly appreciated.
Let me know if I can provide any other helpful information.
Josh