public function testManger()
 {
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\RenderableInterface', $this->interfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Items\\InterfaceManager', $this->interfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\StructureWithMethodsInterface', $this->interfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\DumpableInterface', $this->interfaceManager);
     $this->assertEquals("Interface for entity : \\AppBundle\\Entity\\User", $this->interfaceManager->getComment());
     $this->assertEquals("\\AppBundle\\Entity\\UserInterface", $this->interfaceManager->getNamespace());
     $this->assertEquals("UserInterface", $this->interfaceManager->getName());
     $this->assertEquals("/AppBundle/Entity", $this->interfaceManager->getDirectory());
     $this->assertEquals("\\AppBundle\\Entity", $this->interfaceManager->getNamespaceWithoutName());
     $this->assertEquals("AppBundle\\Entity", $this->interfaceManager->getNamespaceWithoutNameAndBackslashPrefix());
 }
 /**
  * @param InterfaceManager $interface
  * @return string
  * @throws RendererException
  */
 protected function renderInterface(InterfaceManager $interface)
 {
     $template = $interface->getTemplate();
     $tags = $interface->getTemplateTags();
     $methods = [];
     foreach ($interface->getMethods() as $method) {
         $methods[] = $this->render($method);
     }
     $args[RenderableInterface::TAG_NAMESPACE] = $interface->getNamespaceWithoutNameAndBackslashPrefix();
     $args[RenderableInterface::TAG_COMMENT] = $interface->getComment();
     $args[RenderableInterface::TAG_NAME] = $interface->getName();
     $args[RenderableInterface::TAG_METHODS] = Tools::implodeArrayToTemplate($methods);
     return $this->addNewLineAfter($this->replace($tags, $args, $template));
 }