<?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\SchedulerAbstract;

/**
 * @testdox phpOMS\tests\Utils\TaskSchedule\SchedulerAbstractTest: Scheduler abstraction
 *
 * @internal
 */
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() === '' || \file_exists(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());
    }
}
