Skip to content

Instantly share code, notes, and snippets.

@raank
Created October 29, 2016 02:09
Show Gist options
  • Save raank/be0e7ae0450eca497108395b12ef6522 to your computer and use it in GitHub Desktop.
Save raank/be0e7ae0450eca497108395b12ef6522 to your computer and use it in GitHub Desktop.
raank: /var/www/github/Laravel-BugNotifier (improv-msg-date)$ composer test
> phpunit
PHPUnit 5.6.2 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.12-1+deb.sury.org~xenial+1
Configuration: /var/www/github/Laravel-BugNotifier/phpunit.xml.dist
Error: No code coverage driver is available
......FFFF 10 / 10 (100%)
Time: 115 ms, Memory: 10.00MB
There were 4 failures:
1) FlyingLuscas\BugNotifier\MessageTest::testMessageBodyOutput with data set #0 ('Exception')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'[2016-10-29 02:07:38] Exception in /var/www/github/Laravel-BugNotifier/tests/MessageTest.php line 25
+'[2016-10-29 02:07:38] Exception /var/www/github/Laravel-BugNotifier/tests/MessageTest.php 25
-Some dummy message
+
#0 [internal function]: FlyingLuscas\BugNotifier\MessageTest->testMessageBodyOutput('Exception')
#1 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(1103): ReflectionMethod->invokeArgs(Object(FlyingLuscas\BugNotifier\MessageTest), Array)
#2 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(954): PHPUnit_Framework_TestCase->runTest()
#3 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestResult.php(701): PHPUnit_Framework_TestCase->runBare()
#4 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(909): PHPUnit_Framework_TestResult->run(Object(FlyingLuscas\BugNotifier\MessageTest))
#5 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#6 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#7 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#8 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(465): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#9 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/Command.php(185): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#10 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/Command.php(115): PHPUnit_TextUI_Command->run(Array, true)
#11 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/phpunit(47): PHPUnit_TextUI_Command::main()
#12 {main}'
/var/www/github/Laravel-BugNotifier/tests/MessageTest.php:30
2) FlyingLuscas\BugNotifier\MessageTest::testMessageBodyOutput with data set #1 ('InvalidArgumentException')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'[2016-10-29 02:07:38] InvalidArgumentException in /var/www/github/Laravel-BugNotifier/tests/MessageTest.php line 25
+'[2016-10-29 02:07:38] InvalidArgumentException /var/www/github/Laravel-BugNotifier/tests/MessageTest.php 25
-Some dummy message
+
#0 [internal function]: FlyingLuscas\BugNotifier\MessageTest->testMessageBodyOutput('InvalidArgument...')
#1 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(1103): ReflectionMethod->invokeArgs(Object(FlyingLuscas\BugNotifier\MessageTest), Array)
#2 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(954): PHPUnit_Framework_TestCase->runTest()
#3 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestResult.php(701): PHPUnit_Framework_TestCase->runBare()
#4 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(909): PHPUnit_Framework_TestResult->run(Object(FlyingLuscas\BugNotifier\MessageTest))
#5 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#6 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#7 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#8 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(465): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#9 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/Command.php(185): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#10 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/Command.php(115): PHPUnit_TextUI_Command->run(Array, true)
#11 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/phpunit(47): PHPUnit_TextUI_Command::main()
#12 {main}'
/var/www/github/Laravel-BugNotifier/tests/MessageTest.php:30
3) FlyingLuscas\BugNotifier\MessageTest::testMessageBodyOutput with data set #2 ('RuntimeException')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'[2016-10-29 02:07:38] RuntimeException in /var/www/github/Laravel-BugNotifier/tests/MessageTest.php line 25
+'[2016-10-29 02:07:38] RuntimeException /var/www/github/Laravel-BugNotifier/tests/MessageTest.php 25
-Some dummy message
+
#0 [internal function]: FlyingLuscas\BugNotifier\MessageTest->testMessageBodyOutput('RuntimeExceptio...')
#1 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(1103): ReflectionMethod->invokeArgs(Object(FlyingLuscas\BugNotifier\MessageTest), Array)
#2 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(954): PHPUnit_Framework_TestCase->runTest()
#3 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestResult.php(701): PHPUnit_Framework_TestCase->runBare()
#4 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(909): PHPUnit_Framework_TestResult->run(Object(FlyingLuscas\BugNotifier\MessageTest))
#5 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#6 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#7 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#8 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(465): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#9 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/Command.php(185): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#10 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/Command.php(115): PHPUnit_TextUI_Command->run(Array, true)
#11 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/phpunit(47): PHPUnit_TextUI_Command::main()
#12 {main}'
/var/www/github/Laravel-BugNotifier/tests/MessageTest.php:30
4) FlyingLuscas\BugNotifier\MessageTest::testMessageBodyOutput with data set #3 ('FlyingLuscas\BugNotifier\Dumm...eption')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'[2016-10-29 02:07:38] FlyingLuscas\BugNotifier\DummyException in /var/www/github/Laravel-BugNotifier/tests/MessageTest.php line 25
+'[2016-10-29 02:07:38] FlyingLuscas\BugNotifier\DummyException /var/www/github/Laravel-BugNotifier/tests/MessageTest.php 25
-Some dummy message
+
#0 [internal function]: FlyingLuscas\BugNotifier\MessageTest->testMessageBodyOutput('FlyingLuscas\\Bu...')
#1 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(1103): ReflectionMethod->invokeArgs(Object(FlyingLuscas\BugNotifier\MessageTest), Array)
#2 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(954): PHPUnit_Framework_TestCase->runTest()
#3 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestResult.php(701): PHPUnit_Framework_TestCase->runBare()
#4 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestCase.php(909): PHPUnit_Framework_TestResult->run(Object(FlyingLuscas\BugNotifier\MessageTest))
#5 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#6 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#7 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/Framework/TestSuite.php(753): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#8 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(465): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#9 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/Command.php(185): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array, true)
#10 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/src/TextUI/Command.php(115): PHPUnit_TextUI_Command->run(Array, true)
#11 /var/www/github/Laravel-BugNotifier/vendor/phpunit/phpunit/phpunit(47): PHPUnit_TextUI_Command::main()
#12 {main}'
/var/www/github/Laravel-BugNotifier/tests/MessageTest.php:30
FAILURES!
Tests: 10, Assertions: 20, Failures: 4.
Script phpunit handling the test event returned with error code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment