Ejemplo n.º 1
0
 public function testIndex()
 {
     $controller = new RumorController();
     $response = $controller->index($this->m_dependencies);
     $reflection = new \ReflectionProperty(get_class($response), 'template');
     $reflection->setAccessible(true);
     $response_template = $reflection->getValue($response);
     $this->assertEquals('duel.tpl', $response_template);
 }
Ejemplo n.º 2
0
 public function testIndex()
 {
     $controller = new RumorController();
     $result = $controller->index();
     $this->assertEquals('duel.tpl', $result['template']);
 }