예제 #1
0
 /**
  * Adds the given expression as a filter to this query.
  *
  * @since 0.3
  *
  * @param string $expression
  * @return self
  * @throws InvalidArgumentException
  */
 public function filter($expression)
 {
     $this->graphBuilder->filter($expression);
     return $this;
 }
예제 #2
0
 public function testFilter_invalidExpression()
 {
     $graphBuilder = new GraphBuilder(new UsageValidator());
     $this->setExpectedException('InvalidArgumentException');
     $graphBuilder->filter('FooBar');
 }