求めてる回答とは違う気がしますが。。。
PHPUnit_Seleniumで特定のサイトにアクセスしてスクリーンショットを撮ることが出来るようです。
https://github.com/giorgiosironi/phpunit-selenium
lang
1class MyTestClass extends PHPUnit_Extensions_Selenium2TestCase {
2 ...
3 public function screenshot($filepath) {
4 $filedata = $this->currentScreenshot();
5 file_put_contents($filepath, $filedata);
6 }
7
8 public function testSomething() {
9 $this->screenshot('/path/to/screenshot.png');
10 }
11 ...
12}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。