public function testConstruct()
 {
     $controller = new SymfonyController('mycontroller', 'A\\Namespace', 'a description');
     $this->assertEquals('mycontroller', $controller->getName());
     $this->assertEquals('A\\Namespace', $controller->getNamespace());
     $this->assertEquals('a description', $controller->getDescription());
 }
Beispiel #2
0
 protected function getFilepath(SymfonyController $controller, $destination)
 {
     return $destination . '/' . $controller->getName() . '.php';
 }