Exemple #1
0
 /**
  * Test callback usage with another function
  */
 public function testSplitOnCharCallbackNumeric()
 {
     $result = MUtil_String::splitOnCharCallback('ab1cD2ef', 'is_numeric');
     $test[0] = 'ab';
     $test[1] = '1cD';
     $test[2] = '2ef';
     $this->assertEquals($result, $test);
 }