/** * Filters the given Descriptor and returns the altered object. * * @param Filterable $descriptor * * @return Filterable|null */ public function filter(Filterable $descriptor) { $chain = $this->factory->getChainFor(get_class($descriptor)); return $chain->filter($descriptor); }
/** * @covers phpDocumentor\Descriptor\Filter\ClassFactory::getChainFor */ public function testGetChainForReturnsInstanceOfFilterChain() { $filterChain = $this->fixture->getChainFor('foo'); $this->assertInstanceOf('Zend\\Filter\\FilterChain', $filterChain); }