phpOMS/tests/Utils/TaskSchedule/SchedulerFactoryTest.php

36 lines
836 B
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace phpOMS\tests\Utils\TaskSchedule;
use phpOMS\Utils\TaskSchedule\Cron;
use phpOMS\Utils\TaskSchedule\SchedulerFactory;
use phpOMS\Utils\TaskSchedule\TaskScheduler;
/**
* @internal
*/
class SchedulerFactoryTest extends \PHPUnit\Framework\TestCase
{
public function testFactory() : void
{
self::assertTrue((SchedulerFactory::create('') instanceof Cron) || (SchedulerFactory::create('') instanceof TaskScheduler));
// todo: make full test here by defining schtask or crontab path
// todo: create task
// todo: get task
// todo: remove task
}
}