Skip to content

Commit fdeb6e0

Browse files
committed
Update dependencies.
PHPUnit updates include a change to how the code coverage report is fetched programmatically.
1 parent b3b107a commit fdeb6e0

File tree

5 files changed

+255
-103
lines changed

5 files changed

+255
-103
lines changed

build.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111
$phpunitConfiguration = PHPUnit_Util_Configuration::getInstance(__DIR__ . '/phpunit.xml');
1212
$phpunitArguments = ['coverageHtml' => __DIR__ . '/coverage', 'configuration' => $phpunitConfiguration];
1313
$testRunner = new PHPUnit_TextUI_TestRunner();
14-
$result = $testRunner->doRun($phpunitConfiguration->getTestSuiteConfiguration(), $phpunitArguments);
14+
$result = $testRunner->doRun($phpunitConfiguration->getTestSuiteConfiguration(), $phpunitArguments, false);
1515
if (!$result->wasSuccessful()) {
1616
exit(1);
1717
}
1818

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

0 commit comments

Comments
 (0)