コード例 #1
0
 /**
  * Tests if endpoint returns builders.
  */
 public function testEndpointGetter()
 {
     $filterName = 'acme_filter';
     $filter = new MatchAllQuery();
     $endpoint = new FilterEndpoint();
     $endpoint->add($filter, $filterName);
     $builders = $endpoint->getAll();
     $this->assertCount(1, $builders);
     $this->assertSame($filter, $builders[$filterName]);
 }