Beispiel #1
0
 /**
  * @covers adamblake\SimpleDb\Selector\Selector::strposArray
  */
 public function testStrposArray()
 {
     $needles = array('a', 'ab', 'hello', 'z');
     $haystack = 'This string includes ab and hello but not ';
     $matches = Selector::strposArray($haystack, $needles);
     $expected = array('a' => 21, 'ab' => 21, 'hello' => 28, 'z' => false);
     $this->assertEquals($expected, $matches);
 }