public function testTasks()
{
$this->specify("CLI Tasks don't return the expected results", function () {
$di = new CliFactoryDefault();
$di["registry"] = function () {
$registry = new Registry();
$registry->data = "data";
return $registry;
};
$task = new \MainTask();
$task->setDI($di);
expect($task->requestRegistryAction())->equals("data");
expect($task->helloAction())->equals("Hello !");
expect($task->helloAction(["World"]))->equals("Hello World!");
$task2 = new \EchoTask();
$task2->setDI($di);
expect($task2->mainAction())->equals("echoMainAction");
});
}