http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692014-02-18T16:42:35ZTYPO3 ForgeTYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=2043422014-02-18T16:42:35ZMarc Bastian Heinrichstypo3@mbh-software.de
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Accepted</i></li></ul> TYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=2043442014-02-18T16:46:19ZMarc Bastian Heinrichstypo3@mbh-software.de
<ul><li><strong>Subject</strong> changed from <i>Impexp functional tests did not fail on wrong assertion</i> to <i>Impexp functional tests do not fail on wrong assertion</i></li></ul> TYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=2043452014-02-18T16:48:16ZOliver Haderoliver.hader@typo3.org
<ul></ul><p>That's very strange... I can confirm this behaviour where <code>$this->assertFalse(TRUE)</code> does not lead to failing tests...</p> TYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=2043462014-02-18T16:58:48ZMarc Bastian Heinrichstypo3@mbh-software.de
<ul><li><strong>Parent task</strong> set to <i>#55522</i></li></ul> TYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=2043582014-02-18T18:12:49ZMarc Bastian Heinrichstypo3@mbh-software.de
<ul></ul><p>The core DataHandling tests are not affected.</p>
<p>But if you add<br /><pre>
$this->assertTrue(FALSE);
</pre><br />to <br /><pre>
TYPO3\CMS\Core\Tests\Functional\Category\Collection\CategoryCollectionTest::checkIfFromArrayMethodSetCorrectProperties()
</pre></p>
<p>you get following error:<br /><pre>
1) TYPO3\CMS\Core\Tests\Functional\Category\Collection\CategoryCollectionTest::checkIfFromArrayMethodSetCorrectProperties
PHPUnit_Framework_Exception: PHP Fatal error: Uncaught exception 'PHPUnit_Framework_Error_Warning' with message 'file_put_contents(/home/typo3master/public_html/typo3temp/functional-8715107/typo3temp/Cache/Data/cache_classes/530393bd3daf4.temp): failed to open stream: No such file or directory' in /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php:238
Stack trace:
#0 [internal function]: PHPUnit_Util_ErrorHandler::handleError(2, 'file_put_conten...', '/_REPOS/Git/TYP...', 238, Array)
#1 /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php(238): file_put_contents('/home/typo3mast...', '')
#2 /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Cache/Frontend/StringFrontend.php(60): TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend->set('typo3_cms_core_...', '', Array, NULL)
#3 /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Core/ClassLoader.php(168): TYPO3\CMS\Core\Cache\Frontend\StringFrontend->set('typo3_cms_core_...', '')
#4 [internal function]: in /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php on line 238
Fatal error: Uncaught exception 'PHPUnit_Framework_Error_Warning' with message 'file_put_contents(/home/typo3master/public_html/typo3temp/functional-8715107/typo3temp/Cache/Data/cache_classes/530393bd3daf4.temp): failed to open stream: No such file or directory' in /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php on line 238
PHPUnit_Framework_Error_Warning: file_put_contents(/home/typo3master/public_html/typo3temp/functional-8715107/typo3temp/Cache/Data/cache_classes/530393bd3daf4.temp): failed to open stream: No such file or directory in /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php on line 238
Call Stack:
5.9686 11310800 1. TYPO3\CMS\Core\Error\AbstractExceptionHandler->handleException(class PHPUnit_Framework_Error_Warning) /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php:0
5.9687 11310888 2. TYPO3\CMS\Core\Error\ProductionExceptionHandler->echoExceptionCLI(class PHPUnit_Framework_Error_Warning) /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php:46
5.9687 11311016 3. TYPO3\CMS\Core\Error\AbstractExceptionHandler->writeLogEntries(class PHPUnit_Framework_Error_Warning, string(3)) /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Error/ProductionExceptionHandler.php:78
5.9689 11313232 4. TYPO3\CMS\Core\Utility\GeneralUtility::sysLog(string(369), string(29), long) /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php:71
5.9689 11314016 5. TYPO3\CMS\Core\Core\ClassLoader->loadClass(string(34)) /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php:0
5.9696 11314264 6. TYPO3\CMS\Core\Cache\Frontend\StringFrontend->set(string(34), string(0), ???, ???) /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Core/ClassLoader.php:168
5.9697 11314448 7. TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend->set(string(34), string(0), array(0), null) /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Cache/Frontend/StringFrontend.php:60
5.9701 11314680 8. file_put_contents(string(112), string(0)) /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php:238
5.9701 11316936 9. PHPUnit_Util_ErrorHandler::handleError(long, string(181), string(96), long, array(5)) /_REPOS/Git/TYPO3/TYPO3.CMS_master/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php:238
</pre></p>
<p>with <br /><pre>
$this->assertTrue(TRUE);
</pre><br />everything is fine.</p> TYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=2048342014-02-21T15:24:30ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>Accepted</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/27773">https://review.typo3.org/27773</a></p> TYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=2048402014-02-21T16:09:07ZHelmut Hummeltypo3@helhum.io
<ul></ul><p>Marc Bastian Heinrichs wrote:</p>
<blockquote>
<p>you get following error:</p>
</blockquote>
<p>These are side effects of a not optimal functional testing bootstrap.</p>
<p>First of all, PHP warnings are discarded by the production exception handler which is active by default.<br />Because of this many warning that are now triggered are silently ignored</p>
<p>Secondly the functional test teardown does not remove the class loader but removes the instance directories<br />because of this the TYPO3 class loader is still triggered and tries to write things to a cache directory that does not exist any more.</p>
<p>A temporary workaround is disable caching (at least of core and classes) in functional tests as caching should not happen anyway during testing.</p> TYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=2048432014-02-21T16:18:35ZGerrit Code Review
<ul></ul><p>Patch set 1 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/27775">https://review.typo3.org/27775</a></p> TYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=2048442014-02-21T16:30:24ZHelmut Hummeltypo3@helhum.io
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[BUGFIX] Remove class loader in functional test tear down The functional test teardown does not ..." href="http://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/86cef9f801f557be988b6b4fd6e62c6e772415fd">86cef9f801f557be988b6b4fd6e62c6e772415fd</a>.</p> TYPO3 Core - Task #56086: Impexp functional tests do not fail on wrong assertionhttp://forge.typo3.org/issues/56086?journal_id=3467672017-10-23T21:40:00ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>