public function getController()
{
$rawController = $this->getRawController();
return $rawController ? Strings::underscoreToCamelCase($rawController) : null;
}
/** * @test */ public function shouldExtractController() { //given $this->_path(Config::getPrefixSystem() . '/user/add/id/5/name/john'); //then $this->assertEquals('User', $this->uri->getController()); $this->assertEquals('user', $this->uri->getRawController()); }