Unfortunately, this did not solve the issue for me. I edited the TestSuite.php and also put some comments aroud the test to verify it is called:
echo "before test method exists\n";
if ($this->testCase &&
@method_exists($this->name, 'setUpBeforeClass')) {
call_user_func(array($this->name, 'setUpBeforeClass'));
}
echo "after test method exists\n";
And as the output shows, these statements are called but the error still shows up:
klaas@mint-desktop /var/www/websites/demo/protected/tests $ phpunit functional/SiteTest.php D
PHPUnit 3.6.10 by Sebastian Bergmann.
Configuration read from /var/www/websites/demo/protected/tests/phpunit.xml
before test method exists
after test method exists
before test method exists
after test method exists
SSSPHP Warning: include(SiteTest: Firefox.php): failed to open stream: No such file or directory in /var/www/websites/yii-1.1.10.r3566/framework/YiiBase.php on line 418
PHP Warning: include(): Failed opening 'SiteTest: Firefox.php' for inclusion (include_path='.:/var/www/websites/demo/protected/components:/var/www/websites/demo/protected/models:/usr/share/php:/usr/share/pear') in /var/www/websites/yii-1.1.10.r3566/framework/YiiBase.php on line 418
Time: 0 seconds, Memory: 5.00Mb
OK, but incomplete or skipped tests!
Tests: 3, Assertions: 0, Skipped: 3.
Furthermore, I do not get the stacktrace message and do not see how to enable them. Is this an option of the phpunit command?
And is there another soulution to get rid of the warning messages?
Greetings, Klaus