Skip to content

Instantly share code, notes, and snippets.

@nickdavies791
Created April 1, 2019 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdavies791/9056801393531b0c9c578a00ca04f7d5 to your computer and use it in GitHub Desktop.
Save nickdavies791/9056801393531b0c9c578a00ca04f7d5 to your computer and use it in GitHub Desktop.
Useful snippet in PHPUnit to show which line caused the test to fail
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
...
<listeners>
<listener class="NunoMaduro\Collision\Adapters\Phpunit\Listener" />
</listeners>
...
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment