public function testAddAndGetDocument() { $doc = new ReadOnlyDocument(array('id' => 1)); $this->query->addDocument($doc); $this->assertEquals(array($doc), $this->query->getDocuments()); }
public function testAddAndGetDocument() { $doc = new ReadOnlyDocument(array('id' => 1)); $this->query->addDocument($doc); $this->assertEquals(array($doc), $this->query->getDocuments()); }