mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 19:24:48 +01:00
16 lines
381 B
PHP
16 lines
381 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Testing\PHPUnit;
|
|
|
|
final class StaticPHPUnitEnvironment
|
|
{
|
|
/**
|
|
* Never ever used static methods if possible, this is just handy for tests + src to prevent duplication.
|
|
*/
|
|
public static function isPHPUnitRun() : bool
|
|
{
|
|
return \defined('PHPUNIT_COMPOSER_INSTALL') || \defined('__PHPUNIT_PHAR__');
|
|
}
|
|
}
|