I\'m doing some overloading to PHPUnit\'s Selenium extension that uses the CaptureEntirePageScreenshotToString function, and I would like to only print the path to the scree
There is no PHPUnit internal API to do this. The configuration object is not accessible through the test cases directly.
You can't use PHPUnit_Util_Configuration::getInstance()
as thats only the wrapper for the xml config.
My suggestion would be to just use:
if(in_array('--debug', $_SERVER['argv'], true)) {
//Insert your debug code here.
}
Relevant classes: