mageekguy\atoum\scripts\runner::autorunMustBeEnabled PHP Метод

autorunMustBeEnabled() публичный статический Метод

public static autorunMustBeEnabled ( )
    public static function autorunMustBeEnabled()
    {
        return static::$autorunner === true;
    }

Usage Example

Пример #1
0
<?php

namespace mageekguy\atoum;

use mageekguy\atoum\scripts;
require_once __DIR__ . '/../classes/autoloader.php';
if (defined(__NAMESPACE__ . '\\scripts\\runner') === false) {
    define(__NAMESPACE__ . '\\scripts\\runner', __FILE__);
}
if (scripts\runner::autorunMustBeEnabled() === true) {
    scripts\runner::enableAutorun(constant(__NAMESPACE__ . '\\scripts\\runner'));
}