lithium\tests\cases\console\RouterTest::testParseShortOptionAsFirst PHP Method

testParseShortOptionAsFirst() public method

    public function testParseShortOptionAsFirst()
    {
        $expected = array('command' => 'test', 'action' => 'action', 'args' => array(), 'i' => true);
        $result = Router::parse(new Request(array('args' => array('-i', 'test', 'action'))));
        $this->assertEqual($expected, $result);
        $expected = array('command' => 'test', 'action' => 'action', 'args' => array('something'), 'i' => true);
        $result = Router::parse(new Request(array('args' => array('-i', 'test', 'action', 'something'))));
        $this->assertEqual($expected, $result);
    }