Exemple #1
0
 public function test_rindex_2()
 {
     $name = array('name' => 'John Doe', 'first' => 'John', 'middle' => 'M', 'last' => 'Doe', 'title' => 'Dr.', 'suffix' => 'Jr.');
     $ret = Enumerator::rindex_($name, function ($key, &$value) {
         return strpos($value, '.') !== false;
     });
     $this->assertEquals('suffix', $ret);
 }