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

Steffen Kamper info at sk-typo3.de
Wed Jul 7 16:46:32 CEST 2010


Hi,

i'm still not convinced.
Looking to the function this is declared:
* @param	string		Full string to check
* @param	string		Reference string which must be found as the "first 
part" of the full string

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.

sry ;)

vg Steffen


More information about the TYPO3-team-core mailing list