* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Mage\Tests\Task\Custom; use Mage\Task\AbstractTask; use Symfony\Component\Process\Process; /** * Custom PreRegistered Task for Testing * * @author Andrés Montañez */ class ValidTask extends AbstractTask { /** * @return string */ public function getName() { return 'custom-valid'; } /** * @return string */ public function getDescription() { return '[Custom] Valid*'; } /** * @return bool */ public function execute() { /** @var Process $process */ $process = $this->runtime->runCommand('echo "custom-valid"'); return $process->isSuccessful(); } }