lithium\tests\cases\console\RouterTest::testParseGnuStyleLongOptionAsFirst PHP Метод

testParseGnuStyleLongOptionAsFirst() публичный Метод

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