[TYPO3-core] RFC # 15029: Testcase for t3lib_div::isFirstPartOfStr is missing.

Nikolas Hagelstein lists at shr-now.de
Wed Jul 7 16:53:50 CEST 2010


Hi,
 
> So imho these tests
> 'null/zero' => array(NULL, 0),
> 'empty string/zero' => array('', 0),
> 'string/integer' => array('24', 24),
> 'integer/string' => array(24, '24'),
> 'string/integer as first part' => array('24 Bier bitte', 24)
> 
> should fail because at least one param is not a string.
> 
> If we would say "type mixed" they could go to matching part, but with
> current definition they should fail.
Yes indeed. 
Wasn't sure about the way to go.
So:  change the test to reflect the intend behavior rather than the
implemented - fix afterwards, right?
If so ...see v4 :).

Cheers,
Nikolas



-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3lib_divTest.php_15029_4.patch
Type: application/octet-stream
Size: 2695 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100707/549d358f/attachment-0001.obj>


More information about the TYPO3-team-core mailing list