Project

General

Profile

Bug #67189

Updated by Alexander Opitz almost 9 years ago

<pre> TYPO3\CMS\Core\Tests\Unit\Log\LogRecordTest::toStringIncludesExceptionDataAsJson 
 Failed asserting that 'Fri, 29 May 2015 08:44:59 +0000 [DEBUG] request="e499f6eb7846b" component="test.core.log": test message - {"exception":"Exception: foo in /typo3-src/typo3/sysext/core/Tests/Unit/Log/LogRecordTest.php:158 
 Stack trace: 
 #0 \/home\/opitz\/projects\/typo3-master\/typo3-src\/typo3\/sysext\/core\/Tests\/Unit\/Log\/LogRecordTest.php:158\nStack trace:\n#0 [internal function]: TYPO3\\CMS\\Core\\Tests\\Unit\\Log\\LogRecordTest->toStringIncludesExceptionDataAsJson() 
 #1 /phpunit/phpunit/src/Framework/TestCase.php(865): TYPO3\\CMS\\Core\\Tests\\Unit\\Log\\LogRecordTest->toStringIncludesExceptionDataAsJson()\n#1 \/home\/opitz\/projects\/typo3-master\/typo3-src\/typo3\/contrib\/vendor\/phpunit\/phpunit\/src\/Framework\/TestCase.php(865): ReflectionMethod->invokeArgs(Object(TYPO3\\CMS\\Core\\Tests\\Unit\\Log\\LogRecordTest), Array) 
 #2 /phpunit/phpunit/src/Framework/TestCase.php(743): PHPUnit_Framework_TestCase->runTest() 
 #3 /phpunit/phpunit/src/Framework/TestResult.php(609): PHPUnit_Framework_TestCase->runBare() 
 #4 /phpunit/phpunit/src/Framework/TestCase.php(699): PHPUnit_Framework_TestResult->run(Object(TYPO3\\CMS\\Core\\Tests\\Unit\\Log\\LogRecordTest)) 
 #5 /phpunit/phpunit/src/Framework/TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult)) 
 #6 /phpunit/phpunit/src/Framework/TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult)) 
 #7 /phpunit/phpunit/src/Framework/TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult)) 
 #8 /phpunit/phpunit/src/TextUI/TestRunner.php(406): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult)) 
 #9 /phpunit/phpunit/src/TextUI/Command.php(153): Array)\n#2 \/home\/opitz\/projects\/typo3-master\/typo3-src\/typo3\/contrib\/vendor\/phpunit\/phpunit\/src\/Framework\/TestCase.php(743): PHPUnit_Framework_TestCase->runTest()\n#3 \/home\/opitz\/projects\/typo3-master\/typo3-src\/typo3\/contrib\/vendor\/phpunit\/phpunit\/src\/Framework\/TestResult.php(609): PHPUnit_Framework_TestCase->runBare()\n#4 \/home\/opitz\/projects\/typo3-master\/typo3-src\/typo3\/contrib\/vendor\/phpunit\/phpunit\/src\/Framework\/TestCase.php(699): PHPUnit_Framework_TestResult->run(Object(TYPO3\\CMS\\Core\\Tests\\Unit\\Log\\LogRecordTest))\n#5 \/home\/opitz\/projects\/typo3-master\/typo3-src\/typo3\/contrib\/vendor\/phpunit\/phpunit\/src\/Framework\/TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))\n#6 \/home\/opitz\/projects\/typo3-master\/typo3-src\/typo3\/contrib\/vendor\/phpunit\/phpunit\/src\/Framework\/TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))\n#7 \/home\/opitz\/projects\/typo3-master\/typo3-src\/typo3\/contrib\/vendor\/phpunit\/phpunit\/src\/Framework\/TestSuite.php(722): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))\n#8 \/home\/opitz\/projects\/typo3-master\/typo3-src\/typo3\/contrib\/vendor\/phpunit\/phpunit\/src\/TextUI\/TestRunner.php(406): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))\n#9 \/home\/opitz\/projects\/neos-git\/Packages\/Libraries\/phpunit\/phpunit\/src\/TextUI\/Command.php(153): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array) 
 #10 /phpunit/phpunit/src/TextUI/Command.php(105): Array)\n#10 \/home\/opitz\/projects\/neos-git\/Packages\/Libraries\/phpunit\/phpunit\/src\/TextUI\/Command.php(105): PHPUnit_TextUI_Command->run(Array, true) 
 #11 /phpunit/phpunit/phpunit7(56): PHPUnit_TextUI_Command::main() 
 #12 true)\n#11 \/home\/opitz\/projects\/neos-git\/Packages\/Libraries\/phpunit\/phpunit\/phpunit7(56): PHPUnit_TextUI_Command::main()\n#12 {main}"}' contains "'Exception' with message 'foo'" 
 </pre> 

 => PHP changed format of Exception Messages 
 => https://github.com/php/php-src/pull/1226

Back