Skip to content

Instantly share code, notes, and snippets.

@makasim
Created January 13, 2012 13:02
Show Gist options
  • Save makasim/1605987 to your computer and use it in GitHub Desktop.
Save makasim/1605987 to your computer and use it in GitHub Desktop.
Show trace in selenium tests
<?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