public function testRender()
{
$i = InterfaceGenerator::factory('TestInterface');
$i->setNamespace(new NamespaceGenerator('Test\\Space'))->setParent('TestParent')->setDocblock(new DocblockGenerator('This is a test desc.'))->addMethod(new MethodGenerator('testMethod'));
$code = (string) $i;
$code = $i->render(true);
ob_start();
$i->render();
$output = ob_get_clean();
$this->assertContains('interface TestInterface', $output);
$this->assertContains('interface TestInterface', $code);
}