unittests for task factory and dummy task classes for tests created

This commit is contained in:
Claudio Zizza
2015-03-11 21:41:40 +01:00
committed by Claudio Zizza
parent 0406c7de8a
commit 2c27e2c46d
4 changed files with 147 additions and 1 deletions
+36
View File
@@ -0,0 +1,36 @@
<?php
namespace Task;
use Exception;
use Mage\Task\AbstractTask;
use Mage\Task\ErrorWithMessageException;
use Mage\Task\SkipException;
class MyTask extends AbstractTask
{
/**
* Returns the Title of the Task
*
* @return string
*/
public function getName()
{
return 'my task';
}
/**
* Runs the task
*
* @return boolean
* @throws Exception
* @throws ErrorWithMessageException
* @throws SkipException
*/
public function run()
{
return true;
}
}