| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4.7691 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 11 | public function __construct() |
|
| 25 | { |
||
| 26 | 11 | if (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR)) { |
|
| 27 | $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR; |
||
| 28 | 11 | } elseif (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE)) { |
|
| 29 | 11 | $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE; |
|
| 30 | 11 | } elseif (file_exists(self::PHPUNIT_RELPATH_FOR_PHAR)) { |
|
| 31 | $this->phpUnitBin = self::PHPUNIT_RELPATH_FOR_PHAR; |
||
| 32 | } else { |
||
| 33 | throw new \Exception('PHPUnit bin not found'); |
||
| 34 | } |
||
| 35 | |||
| 36 | 11 | $this->phpUnitBin = realpath($this->phpUnitBin); |
|
| 37 | 11 | } |
|
| 38 | |||
| 47 |