コード例 #1
0
ファイル: MatchAllTest.php プロジェクト: ro-ka/Elastica
	public function testToArray() {
		$filter = new Elastica_Filter_MatchAll();

		$expectedArray = array('match_all' => new stdClass());

		$this->assertEquals($expectedArray, $filter->toArray());
	}
コード例 #2
0
ファイル: MultiTest.php プロジェクト: richardmiller/Elastica
 public function testSetFilters()
 {
     $stub = $this->getStub();
     $filter = new Elastica_Filter_MatchAll();
     $stub->setFilters(array($filter));
     $expected = array($filter->toArray());
     $this->assertEquals($expected, $stub->getFilters());
 }