예제 #1
0
 public function testSearchByName()
 {
     $expected = ['foo', 'bar'];
     $this->driver->expects($this->once())->method('searchByName')->will($this->returnValue($expected))->with('my_name', 123);
     $this->assertEquals($expected, $this->manager->searchByName('my_name', 123));
 }
예제 #2
0
 /**
  * @param string $name
  * @param int $limit
  *
  * @return array
  */
 public function searchByName($name, $limit = 0)
 {
     return $this->driver->searchByName($name, $limit);
 }