Created
January 13, 2012 13:02
-
-
Save makasim/1605987 to your computer and use it in GitHub Desktop.
Show trace in selenium tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function onNotSuccessfulTest(\Exception $e) | |
{ | |
try { | |
return parent::onNotSuccessfulTest($e); | |
} catch (\Exception $newException) { | |
if ($e instanceof \PHPUnit_Framework_ExpectationFailedException && false == $e->getComparisonFailure()) { | |
throw $e; | |
} | |
throw $newException; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment