public function testCallActionMethod()
{
$this->specify("CLI Dispatcher's callActionMethod doesn't work as expected", function () {
$di = new CliFactoryDefault();
$dispatcher = new Dispatcher();
$di->setShared("dispatcher", $dispatcher);
$dispatcher->setDI($di);
$mainTask = new \MainTask();
$mainTask->setDI($di);
expect($dispatcher->callActionMethod($mainTask, 'mainAction', []))->equals('mainAction');
expect($dispatcher->callActionMethod($mainTask, 'helloAction', ['World']))->equals('Hello World!');
expect($dispatcher->callActionMethod($mainTask, 'helloAction', ['World', '.']))->equals('Hello World.');
});
}