Skip to content

Commit

Permalink
Adding Skip to mb_strrpos test case. Skips the test if mbstring is in…
Browse files Browse the repository at this point in the history
…stalled and php version is 5.1.x. mb_strrpos had an incompatible function signature in these versions.
  • Loading branch information
markstory committed Oct 22, 2009
1 parent 61c1c47 commit d25497c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cake/tests/cases/libs/multibyte.test.php
Expand Up @@ -4786,6 +4786,10 @@ function testMultibyteStrripos() {
* @return void
*/
function testUsingMbStrrpos() {
$skip = extension_loaded('mbstring') && version_compare(PHP_VERSION, '5.2.0', '<');
if ($this->skipIf($skip, '%s PHP version does not support $offset parameter in mb_strrpos().')) {
return;
}
$string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
$find = 'F';
$result = mb_strrpos($string, $find);
Expand Down

0 comments on commit d25497c

Please sign in to comment.