getBody() public method

Get the method body
public getBody ( ) : string
return string
コード例 #1
0
ファイル: CodeTest.php プロジェクト: nicksagona/PopPHP
 public function testSetAppendAndGetDocblock()
 {
     $c = new Generator('TestClass.php', Generator::CREATE_CLASS);
     $c->setBody('test body');
     $c->appendToBody('more code');
     $body = $c->getBody();
     $this->assertContains('test body', $body);
     $this->assertContains('more code', $body);
 }