Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding Skip to mb_strrpos test case. Skips the test if mbstring is in…

…stalled and php version is 5.1.x. mb_strrpos had an incompatible function signature in these versions.
  • Loading branch information...
commit d25497c52702e0962b85bc6f5692a948d0dbd17e 1 parent 61c1c47
@markstory markstory authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 cake/tests/cases/libs/multibyte.test.php
View
4 cake/tests/cases/libs/multibyte.test.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.