unittests for task factory and dummy task classes for tests created

This commit is contained in:
Claudio Zizza
2015-01-05 13:31:14 +01:00
parent e453d1977d
commit 022b4282cd
4 changed files with 148 additions and 2 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;
}
}