[TYPO3-core] RFC #16779: Bug: t3lib_cache_backend_RedisBackendTest causes t3lib_db_PreparedStatementTest tests to fail

Oliver Klee typo3-german-02 at oliverklee.de
Sat Dec 18 22:37:30 CET 2010


Hi,

Am 18.12.2010 21:21, schrieb Steffen Gebert:
> Committed to trunk rev. 9852 after my +1 by reading and testing.

Thanks a lot!

> PhpStorm reports an error in the following blocks (2x used, parameter
> $condition missing):
>> try {
>>     $this->setUpBackend(array('password' => 'foo'));
>> } catch (Exception $e) {
>>     $this->assertTrue();
>> }
> But this is nothing new, I think passing TRUE as parameter would fix it,
> right?

Actually, the assertTrue is not needed at all in that case. The test
will be marked as passed as long as there's no failed assertion and no
Exception. I've attached a patch for this.


Oli
-- 
Certified TYPO3 Integrator | TYPO3 Security Team Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assertTrue.diff
Type: text/x-diff
Size: 988 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101218/03cbacaa/attachment.diff>


More information about the TYPO3-team-core mailing list