/**
  * Resolves the filter.
  *
  * @access  protected
  * @param   string         $filter  Filter
  * @return  array|Closure
  */
 protected function resolveFilter($filter)
 {
     $filter = $this->filters->get($filter);
     if (!$filter instanceof Closure) {
         $filter = [$this->container->get($filter), 'filter'];
     }
     return $filter;
 }
 /**
  * @expectedException \RuntimeException
  */
 public function testGetNonExisting()
 {
     $filters = new Filters();
     $filters->get('foo');
 }