To use phpunit_coverage.php
I need to set auto_prepend_file
and auto_append_file
properties in php.ini
to specified files prepend.php
and append.php
. In both scripts cookies are checked to make sure that test is running:
if ( isset($_COOKIE['PHPUNIT_SELENIUM_TEST_ID']) &&
The problem is that this cookie is kept as localhost's cookie, not the webserver's. So when it is checked, it is not set and xdebug doesn't start.
Selenium and webserver are located on different machines, could this be the cause of this error?
Situation is displayed here:
createCookie()
method, it is assigned tolocalhost
, so I don't have any access to it after.