예제 #1
0
 /**
  * @dataProvider simpleArrayProvider
  */
 public function testIndexOf(array $array)
 {
     $element = 2;
     $ma = new MutableArray($array);
     $key = array_search($element, $array, true);
     $this->assertTrue($key === $ma->indexOf($element));
 }