public function testObjectInstantiation()
 {
     self::$_obj = new ControllerEntity();
     $this->assertInstanceOf('\\Synergy\\Controller\\ControllerEntity', self::$_obj);
     self::$_obj->setController('Test\\TestController');
     $this->assertEquals('Test\\TestController', self::$_obj->getClassName());
     $this->assertEquals('defaultAction', self::$_obj->getMethodName());
 }
Beispiel #2
0
 /**
  * controller defined in the successful route
  *
  * @return ControllerEntity the controller defined by the route
  */
 public function getController()
 {
     $this->controller->setParameters($this->parameters);
     return $this->controller;
 }