public function testGetController() { $controllerName = 'some'; $result = $this->object->getController($controllerName); $this->assertNull($result); $expected = '123'; $result = $this->object->getController($controllerName, $expected); $this->assertEquals($expected, $result); $expected = array('name' => 'value'); $data = array($controllerName => $expected); $this->object->setControllers($data); $result = $this->object->getController($controllerName); $this->assertEquals($expected, $result); }