onDocument() public method

public onDocument ( CarewEvent $event )
$event Carew\Event\CarewEvent
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());
 }