function it_applies(ValueFilterInterface $filter)
 {
     $document = new \DOMDocument();
     $element = $document->createElement('div');
     $element->setAttribute('class', 'test');
     $filter->filter('test')->shouldBeCalled();
     $this->addFilter($filter);
     $this->apply($element);
 }
 function it_applies(ValueFilterInterface $filter)
 {
     $document = new \DOMDocument();
     $element = $document->createElement('div');
     $element->nodeValue = 'test2';
     $document->appendChild($element);
     $filter->filter($element->nodeValue)->shouldBeCalled()->willReturn('test');
     $this->addFilter($filter);
     $this->apply($element);
     expect($element->nodeValue)->toBe('test');
 }