| 1 | <?php |
||
| 24 | class PHPUnit implements CoverageResolver |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Path to phpunit |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $phpUnit; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * PHPUnit constructor. |
||
| 35 | * |
||
| 36 | * @param string $pathToPHPUnit |
||
| 37 | */ |
||
| 38 | public function __construct($pathToPHPUnit) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Run PHPUnit to calculate code coverage. |
||
| 45 | * Shamelessly ripped from bruli/php-git-hooks. |
||
| 46 | * |
||
| 47 | * @author Pablo Braulio |
||
| 48 | * @return float |
||
| 49 | */ |
||
| 50 | public function getCoverage() |
||
| 60 | } |
||
| 61 |