Skip to content

Commit

Permalink
Merge pull request giorgiosironi#168 from forrest79/windows-compatibi…
Browse files Browse the repository at this point in the history
…lity

Update ScreenshotListener to work on Windows
  • Loading branch information
giorgiosironi committed Sep 4, 2012
2 parents 7d0c210 + db2cf4f commit 7bc60a1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -74,7 +74,7 @@ public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_Asser

private function storeAScreenshot(PHPUnit_Framework_Test $test)
{
$file = $this->directory . '/' . get_class($test) . '__' . $test->getName() . '__ ' . date('Y-m-d\TH:i:s') . '.png';
$file = $this->directory . '/' . get_class($test) . '__' . $test->getName() . '__ ' . date('Y-m-d\TH-i-s') . '.png';
file_put_contents($file, $test->currentScreenshot());
}

Expand Down

0 comments on commit 7bc60a1

Please sign in to comment.