[TYPO3-core] RFC: #15440: isFirstPartOfStr doesn't work with non-strings
Bernhard Kraft
kraftb at think-open.at
Thu Aug 12 23:35:23 CEST 2010
Hiho,
Am 2010-08-12 22:59, schrieb Steffen Kamper:
> one testing still is missing, you can do it with the unit test :)
I run the unit tests with the new test cases before applying the patch.
I did not result in an error for the case where one of the parameters
was an integer (it seems my PHP version automatically converts the
integers to string, PHP_VERSION: 5.3.2-1ubuntu4.2), but the following
test cases yielded an yellow error:
isFirstPartOfStrReturnsFalseForNotMatchingFirstPart with data set "zero
integer is not part of null"
isFirstPartOfStrReturnsFalseForNotMatchingFirstPart with data set "zero
integer is not part of empty string"
After appyling the patch there were no problems. So also +1 on testing.
greetings,
Bernhard
More information about the TYPO3-team-core
mailing list