Carew\Document::setBody PHP Method

setBody() public method

public setBody ( $body )
    public function setBody($body)
    {
        $this->body = $body;
        return $this;
    }

Usage Example

示例#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());
 }
All Usage Examples Of Carew\Document::setBody