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());
 }
Example #2
0
 /**
  * Return the matching ControllerEntity for the route controller
  *
  * @param string $controller the controller string from the route
  *
  * @return ControllerEntity
  */
 protected function fetchControllerEntity($controller)
 {
     $entity = new ControllerEntity();
     $entity->setController($controller);
     return $entity;
 }