mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-12 02:08:40 +00:00
46 lines
1.1 KiB
PHP
Executable File
46 lines
1.1 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\Utils\TaskSchedule;
|
|
|
|
use phpOMS\Utils\TaskSchedule\SchedulerAbstract;
|
|
|
|
/**
|
|
* @testdox phpOMS\tests\Utils\TaskSchedule\SchedulerAbstractTest: Scheduler abstraction
|
|
*
|
|
* @internal
|
|
*/
|
|
final class SchedulerAbstractTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
/**
|
|
* @testdox The scheduler has the expected default values after initialization
|
|
* @covers phpOMS\Utils\TaskSchedule\SchedulerAbstract
|
|
* @group framework
|
|
*/
|
|
public function testDefault() : void
|
|
{
|
|
self::assertTrue(SchedulerAbstract::getBin() === '' || \is_file(SchedulerAbstract::getBin()));
|
|
}
|
|
|
|
/**
|
|
* @testdox The scheduler binary location path can be guessed
|
|
* @covers phpOMS\Utils\TaskSchedule\SchedulerAbstract
|
|
* @group framework
|
|
*/
|
|
public function testGuessBinary() : void
|
|
{
|
|
self::assertTrue(SchedulerAbstract::guessBin());
|
|
}
|
|
}
|