/**
  * @covers Braincrafted\ArrayQuery\Factory\FilterFactory::getFilters()
  */
 public function testGetFilters()
 {
     $operators = FilterFactory::getFilters();
     $this->assertCount(7, $operators);
     foreach ($operators as $operator) {
         $this->assertInstanceOf('Braincrafted\\ArrayQuery\\Filter\\FilterInterface', $operator);
     }
 }
 /**
  * @param WhereEvaluation $whereEvaluation
  *
  * @return WhereEvaluation
  */
 protected function getWhereEvaluation($whereEvaluation = null)
 {
     if (null !== $whereEvaluation && false === $whereEvaluation instanceof WhereEvaluation) {
         throw new \InvalidArgumentException('Argument "whereEvaluation" must be an instance of WhereEvaluation.');
     }
     if (null === $whereEvaluation) {
         $whereEvaluation = new WhereEvaluation();
     }
     foreach (OperatorFactory::getOperators() as $operator) {
         $whereEvaluation->addOperator($operator);
     }
     foreach (FilterFactory::getFilters() as $filter) {
         $whereEvaluation->addFilter($filter);
     }
     return $whereEvaluation;
 }