rector/packages/Testing/PHPUnit/StaticPHPUnitEnvironment.php
Tomas Votruba d56e7982d0 Updated Rector to commit dedd4b55fe3e03cae9bd5ac822cfdccd8deb3fb6
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00

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__');
}
}