/** * @covers Paradox\Client::searchForOne */ public function testSearchForOne() { $result = $this->client->searchForOne($this->collectionName, "bio", "marathon", "doc.name in [@tsegaye]", array('tsegaye' => 'Tsegaye Kebede')); $this->assertInstanceOf('Paradox\\AModel', $result, 'The result item should be of the type Paradox\\AModel'); $this->assertEquals('Tsegaye Kebede', $result->get('name'), 'The name of the found document should be "Tsegaye Kebede"'); }