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)); }
/** * @param string $name * @param int $limit * * @return array */ public function searchByName($name, $limit = 0) { return $this->driver->searchByName($name, $limit); }