Skip to content

Instantly share code, notes, and snippets.

@marc1706
Created July 20, 2013 20:24
Show Gist options
  • Save marc1706/6046310 to your computer and use it in GitHub Desktop.
Save marc1706/6046310 to your computer and use it in GitHub Desktop.
marc@marc-G71GX ~/Dokumente/Entwicklung/phpbb3 $ sudo phpunit -c phpunit.xml.functional "tests/functional/report_post_captcha.php"
PHPUnit 3.7.22 by Sebastian Bergmann.
Configuration read from /home/marc/Dokumente/Entwicklung/phpbb3/phpunit.xml.functional
F.
Time: 14 seconds, Memory: 11.25Mb
There was 1 failure:
1) phpbb_functional_report_post_captcha_test::test_user_report_post
Failed asserting that '<b>[phpBB Debug] PHP Notice</b>: in file <b>[ROOT]/report.php</b> on line <b>151</b>: <b>Undefined variable: captcha</b><br />
<br />
<font size='1'><table class='xdebug-error xe-fatal-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Call to a member function validate() on a non-object in /home/marc/Dokumente/Entwicklung/phpbb3/phpBB/report.php on line <i>151</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0006</td><td bgcolor='#eeeeec' align='right'>295280</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/home/marc/Dokumente/Entwicklung/phpbb3/phpBB/report.php' bgcolor='#eeeeec'>../report.php<b>:</b>0</td></tr>
</table></font>
' does not contain "[phpBB Debug]".
/home/marc/Dokumente/Entwicklung/phpbb3/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint.php:144
/home/marc/Dokumente/Entwicklung/phpbb3/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Not.php:139
/home/marc/Dokumente/Entwicklung/phpbb3/tests/test_framework/phpbb_functional_test_case.php:580
/home/marc/Dokumente/Entwicklung/phpbb3/tests/test_framework/phpbb_functional_test_case.php:112
/home/marc/Dokumente/Entwicklung/phpbb3/tests/functional/report_post_captcha.php:23
/home/marc/Dokumente/Entwicklung/phpbb3/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
/home/marc/Dokumente/Entwicklung/phpbb3/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:775
/home/marc/Dokumente/Entwicklung/phpbb3/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:745
/home/marc/Dokumente/Entwicklung/phpbb3/phpBB/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:349
FAILURES!
Tests: 2, Assertions: 84, Failures: 1.
marc@marc-G71GX ~/Dokumente/Entwicklung/phpbb3 $ sudo phpunit -c phpunit.xml.allPHPUnit 3.7.22 by Sebastian Bergmann.
Configuration read from /home/marc/Dokumente/Entwicklung/phpbb3/phpunit.xml.all
............................................................. 61 / 1248 ( 4%)
............................................................. 122 / 1248 ( 9%)
............................................................. 183 / 1248 ( 14%)
............................................................. 244 / 1248 ( 19%)
............................................................. 305 / 1248 ( 24%)
............................................................. 366 / 1248 ( 29%)
............................................................. 427 / 1248 ( 34%)
............................................................. 488 / 1248 ( 39%)
............................................................. 549 / 1248 ( 43%)
............................................................. 610 / 1248 ( 48%)
............................................................. 671 / 1248 ( 53%)
............................................................. 732 / 1248 ( 58%)
............................................................. 793 / 1248 ( 63%)
............................................................. 854 / 1248 ( 68%)
............................................................. 915 / 1248 ( 73%)
............................................................. 976 / 1248 ( 78%)
............................................................. 1037 / 1248 ( 83%)
............................................................. 1098 / 1248 ( 87%)
............................................................. 1159 / 1248 ( 92%)
............................................................. 1220 / 1248 ( 97%)
............................
Time: 02:23, Memory: 53.75Mb
OK (1248 tests, 454363 assertions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment