Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save johndrinkwater/556945a4be2477dfbfbfae8cab52d3c4 to your computer and use it in GitHub Desktop.
Save johndrinkwater/556945a4be2477dfbfbfae8cab52d3c4 to your computer and use it in GitHub Desktop.
The awesomeness of phpunit being triggered on a pre-commit hook for the cached change, it stops git commit
john@joran ~/code/PSN⇔Steam ±:master *+%❯ git commit
Stop `git commit`, test failed with: PHPUnit 4.7.6 by Sebastian Bergmann and contributors.
...FS
Time: 361 ms, Memory: 5.25Mb
There was 1 failure:
1) PSNSteamTest::testJSON
Parse error on line 1814:
... "appid":208570,218784], "map":"
---------------------^
Expected: 'STRING' - It appears you have an extra trailing comma
Failed asserting that 'parsing' is true.
/home/john/code/PSN⇔Steam/.test.php:96
FAILURES!
Tests: 4, Assertions: 7, Failures: 1, Skipped: 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment