Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Beispiel #1
0
 /**
  * @dataProvider getOnDocumentWithPermalink
  */
 public function testOnDocumentWithPermalink($expected, $file)
 {
     $document = $this->createDocument($file);
     $event = new CarewEvent($document);
     $extraction = new Extraction();
     $extraction->onDocument($event);
     $this->assertSame($expected, $document->getPath());
 }