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); }