Bug #21123 » 15440_test.diff
tests/t3lib/t3lib_divTest.php (working copy) | ||
---|---|---|
return array(
|
||
'match first part of string' => array('hello world', 'hello'),
|
||
'match whole string' => array('hello', 'hello'),
|
||
'integer is part of string with same integer casted to string' => array('24', 24),
|
||
'string is part of integer with same number catest to integer' => array(24, '24'),
|
||
'integer is not of string starting with same integer' => array('24 Bier bitte', 24),
|
||
);
|
||
}
|
||
... | ... | |
'empty string is not part of null' => array(NULL, ''),
|
||
'empty string is not part of false' => array(FALSE, ''),
|
||
'empty string is not part of zero integer' => array(0, ''),
|
||
'zero integer is not part of null' => array(NULL, 0),
|
||
'zero integer is not part of empty string' => array('', 0),
|
||
);
|
||
}
|
||