[TYPO3-core] RFC #15224: unittest in tests/t3lib/cache/backend/t3lib_cache_backend_filebackendTest.php fails

Philipp Gampe phil at philippgampe.info
Mon Jul 26 23:20:54 CEST 2010


Am 26.07.2010, 23:12 Uhr, schrieb Steffen Kamper <info at sk-typo3.de>:

> Hi,
>
> here is the corrected patch which works for me. So +1 on reading and
> testing.
>
> vg Steffen

no, does not work on Ubuntu (xampp)

that was the original error:


Testsuite: t3lib_cache_backend_FileBackendTest
  Get cache directory returns the current cache directory
! Failure in test case getCacheDirectoryReturnsTheCurrentCacheDirectory
File:  
/home/spieler/t3_playground/t3_trunk/tests/t3lib/cache/backend/t3lib_cache_backend_filebackendTest.php
Line: 118:
Description
getCacheDirectory() did not return the expected value. Failed asserting  
that  
<string:/opt/lampp/htdocs/t3_playground/dummy/typo3temp/cache/testing/> is  
equal to <string:/opt/lampp/htdocs/typo3temp/cache/testing/>.
Memory leak: 34 KB Time: 0.0058 sec.
  Get returns false for expired entries
! Failure in test case getReturnsFalseForExpiredEntries
File:  
/home/spieler/svn/phpunit/PHPUnit-3.4.12/PHPUnit/Framework/MockObject/InvocationMocker.php
Line: 151:
Description
Expectation failed for method name is equal to <string:isCacheFileExpired>  
when invoked 1 time(s) Parameter 0 for invocation  
t3lib_cache_backend_FileBackend::isCacheFileExpired(<string:/opt/la...edEntry>)  
does not match expected value. Failed asserting that  
<string:/opt/lampp/htdocs/t3_playground/dummy/typo3temp/cache/UnitTestCache/ExpiredEntry>  
is equal to  
<string:/opt/lampp/htdocs/typo3temp/cache/UnitTestCache/ExpiredEntry>.
Memory leak: 60 KB Time: 0.0119 sec.
Failures!

18 tests, 53 assertions, 2 failures, 0 skipped, 0 not implemented, 0  
errors, 0.327 seconds, 307 KB (314792 B) memory leaks




and this is after your patch:


Testsuite: t3lib_cache_backend_FileBackendTest
  Get cache directory returns the current cache directory
! Failure in test case getCacheDirectoryReturnsTheCurrentCacheDirectory
File:  
/home/spieler/t3_playground/t3_trunk/tests/t3lib/cache/backend/t3lib_cache_backend_filebackendTest.php
Line: 118:
Description
getCacheDirectory() did not return the expected value. Failed asserting  
that  
<string:/opt/lampp/htdocs/t3_playground/dummy/typo3temp/cache/testing/> is  
equal to <string:/opt/lampp/htdocs/typo3temp/cache/testing/>.
Memory leak: 34 KB Time: 0.0055 sec.
  Get returns false for expired entries
! Failure in test case getReturnsFalseForExpiredEntries
File:  
/home/spieler/svn/phpunit/PHPUnit-3.4.12/PHPUnit/Framework/MockObject/InvocationMocker.php
Line: 151:
Description
Expectation failed for method name is equal to <string:isCacheFileExpired>  
when invoked 1 time(s) Parameter 0 for invocation  
t3lib_cache_backend_FileBackend::isCacheFileExpired(<string:/opt/la...edEntry>)  
does not match expected value. Failed asserting that  
<string:/opt/lampp/htdocs/t3_playground/dummy/typo3temp/cache/UnitTestCache/ExpiredEntry>  
is equal to  
<string:/opt/lampp/htdocs/typo3temp/cache/UnitTestCache/ExpiredEntry>.
Memory leak: 60 KB Time: 0.0123 sec.
Failures!

18 tests, 53 assertions, 2 failures, 0 skipped, 0 not implemented, 0  
errors, 0.274 seconds, 307 KB (314484 B) memory leaks


Best regards
-- 
Philipp Gampe


More information about the TYPO3-team-core mailing list