sebastianbergmann/phpunit — Issue #389: ReflectionException with code coverage and $seleneseDirectory.
Author: mhoareau84
Created: 2011-10-30 13:21:30+00:00
State: open

I am trying to use a directory of Selenese/HTML files as tests with the property $seleneseDirectory,
as described here: http://www.phpunit.de/manual/3.6/en/selenium.html#selenium.seleniumtestcase.examples.WebTest4.php

Here my test:

setHost ( "127.0.0.1" );
$this->setPort ( 8888 );
$this->setBrowser ( "*safari" );
$this->setBrowserUrl ( "http://www.google.com/" );
$this->setTimeout ( 60000 );
}
}

When i run the following command line:

phpunit SeleneseTest.php

It is working correctly. But when i add the option for code coverage, i got the following error:

phpunit --coverage-html build/logs/coverage/ SeleneseTest.php
PHPUnit 3.5.15 by Sebastian Bergmann.
.
ReflectionException: Method SeleneseTest::selenium_ide/search.html() does not exist in /Users/user/pear/share/pear/PHP/CodeCoverage/Util.php on line 218

(search.html is my test case in html saved by selenium IDE)

Is that a bug ? Or did I miss something ?