Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
The update to PHPUnit requires changes to the build process as well.
  • Loading branch information
nubs committed Jul 4, 2016
1 parent 9f6fda7 commit 13bff72
Show file tree
Hide file tree
Showing 2 changed files with 275 additions and 120 deletions.
5 changes: 2 additions & 3 deletions build.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
$phpunitConfiguration = PHPUnit_Util_Configuration::getInstance(__DIR__ . '/phpunit.xml');
$phpunitArguments = ['coverageHtml' => __DIR__ . '/coverage', 'configuration' => $phpunitConfiguration];
$testRunner = new PHPUnit_TextUI_TestRunner();
$result = $testRunner->doRun($phpunitConfiguration->getTestSuiteConfiguration(), $phpunitArguments);
$result = $testRunner->doRun($phpunitConfiguration->getTestSuiteConfiguration(), $phpunitArguments, false);
if (!$result->wasSuccessful()) {
exit(1);
}

$coverageFactory = new PHP_CodeCoverage_Report_Factory();
$coverageReport = $coverageFactory->create($result->getCodeCoverage());
$coverageReport = $result->getCodeCoverage()->getReport();
if ($coverageReport->getNumExecutedLines() !== $coverageReport->getNumExecutableLines()) {
file_put_contents('php://stderr', "Code coverage was NOT 100%\n");
exit(1);
Expand Down
Loading

0 comments on commit 13bff72

Please sign in to comment.