public function testManger()
 {
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\RenderableInterface', $this->classManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Items\\ClassManager', $this->classManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\StructureWithMethodsInterface', $this->classManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\DumpableInterface', $this->classManager);
     $this->assertEquals("User entity for tests", $this->classManager->getComment());
     $this->assertEquals("\\AppBundle\\Entity\\User", $this->classManager->getNamespace());
     $this->assertEquals("\\AppBundle\\Entity", $this->classManager->getNamespaceWithoutName());
     $this->assertEquals("AppBundle\\Entity", $this->classManager->getNamespaceWithoutNameAndBackslashPrefix());
     $this->assertEquals("User", $this->classManager->getName());
     $this->assertEquals("/AppBundle/Entity", $this->classManager->getDirectory());
     $this->assertTrue($this->classManager->hasInterface());
     $this->assertTrue($this->classManager->hasTestClass());
 }
 /**
  * Dump TestClass to file
  *
  * @param OutputInterface $output
  * @param ClassManager $classManager
  * @param boolean $onlySimulate
  * @return
  */
 protected function processTestClass(OutputInterface $output, ClassManager $classManager, $onlySimulate = false)
 {
     if (false == $classManager->hasTestClass()) {
         return;
     }
     $testClassManager = $classManager->getTestClass();
     if (false == $onlySimulate) {
         $filesManager = $this->getFilesManager();
         $filesManager->dump($testClassManager);
     }
     $output->writeln('<question>Processed: ' . $classManager->getTestClass()->getNamespace() . '</question>');
     $this->outputProcessMethods($output, $testClassManager);
     if (false == $testClassManager->getMethods()->isEmpty()) {
         $output->writeln(sprintf('<comment>Implement missing assertions in %s</comment>', $testClassManager->getNamespace()));
     }
     $output->writeln('');
 }