lithium\tests\cases\action\DispatcherTest::testApplyRulesControllerCasing PHP Method

testApplyRulesControllerCasing() public method

    public function testApplyRulesControllerCasing()
    {
        $params = array('controller' => 'test', 'action' => 'test');
        $expected = array('controller' => 'Test', 'action' => 'test');
        $this->assertEqual($expected, Dispatcher::applyRules($params));
        $params = array('controller' => 'Test', 'action' => 'test');
        $this->assertEqual($params, Dispatcher::applyRules($params));
        $params = array('controller' => 'test_one', 'action' => 'test');
        $expected = array('controller' => 'TestOne', 'action' => 'test');
        $this->assertEqual($expected, Dispatcher::applyRules($params));
    }