lithium\tests\cases\console\DispatcherTest::testRunWithPassed PHP Method

testRunWithPassed() public method

public testRunWithPassed ( )
    public function testRunWithPassed()
    {
        $response = Dispatcher::run(new Request(array('args' => array('lithium\\tests\\mocks\\console\\MockDispatcherCommand', 'with param'))));
        $expected = 'run';
        $result = $response->testAction;
        $this->assertEqual($expected, $result);
        $expected = 'with param';
        $result = $response->testParam;
        $this->assertEqual($expected, $result);
    }