onDocument() 공개 메소드

public onDocument ( CarewEvent $event )
$event Carew\Event\CarewEvent
예제 #1
0
파일: TocTest.php 프로젝트: carew/carew
 public function testOnDocumentDoesNotLinkWithDoubleQuote()
 {
     $document = new Document();
     $document->setPath('index.html');
     $body = '<a href="https://google.com">"google.com"</a>';
     $document->setBody($body);
     $event = new CarewEvent($document);
     $toc = new Toc();
     $toc->onDocument($event);
     $this->assertSame($body, $document->getBody());
 }