BossBey File Manager
PHP:
7.4.33
OS:
Linux
User:
root
Root
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
Testing
/
PHPUnit
📤 Upload
📝 New File
📁 New Folder
Close
Editing: StaticPHPUnitEnvironment.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'); } }
Save
Cancel