Skip to content

Instantly share code, notes, and snippets.

@dannykopping
Created April 8, 2012 12:09
Show Gist options
  • Save dannykopping/2336904 to your computer and use it in GitHub Desktop.
Save dannykopping/2336904 to your computer and use it in GitHub Desktop.
PHPUnit Test
# make sure you run this from the root of the project
phpunit tests/phpunit
# Expected output:
# PHPUnit 3.6.10 by Sebastian Bergmann.
#
# .F
#
# Time: 0 seconds, Memory: 3.25Mb
#
# There was 1 failure:
#
# 1) SampleTest::testHello with data set #1 ('Something else')
# Failed asserting that two strings are equal.
# --- Expected
# +++ Actual
# @@ @@
# -'Hello, Danny'
# +'Hello, Something else'
# /Applications/XAMPP/xamppfiles/htdocs/play/test-deploy-ci/tests/phpunit/SampleTest.php:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment