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 screenshot as we go only when --verbose or --debug is passed in.
For instance,
phpunit --debug ./tests
Then somewhere in my code I have (this is psudo code)
if (--debug)
echo "Screenshot: /path/to/screenshot.png
Suggestions?