Example #1
0
 /**
  * @covers Paradox\Client::searchAll
  */
 public function testSearchAll()
 {
     $result = $this->client->searchAll($this->collectionName, "bio", "marathon", "FILTER doc.name in [@tsegaye]", array('tsegaye' => 'Tsegaye Kebede'));
     $this->assertInternalType('array', $result, "The result set should be an array");
     $resultItem = reset($result);
     $this->assertInstanceOf('Paradox\\AModel', $resultItem, 'The result item should be of the type Paradox\\AModel');
     $this->assertEquals('Tsegaye Kebede', $resultItem->get('name'), 'The name of the found document should be "Tsegaye Kebede"');
 }