File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 3131 coverage : xdebug
3232 ini-file : development
3333 - run : composer install
34- - run : vendor/bin/phpunit --coverage-text
34+ - run : docker pull busybox:latest
35+ - run : vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
3536 if : ${{ matrix.php >= 7.3 }}
36- - run : vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
37+ - run : vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml - c phpunit.xml.legacy
3738 if : ${{ matrix.php < 7.3 }}
39+ - name : Check 100% code coverage
40+ shell : php {0}
41+ run : |
42+ <?php
43+ $metrics = simplexml_load_file('clover.xml')->project->metrics;
44+ exit((int) $metrics['statements'] === (int) $metrics['coveredstatements'] ? 0 : 1);
Original file line number Diff line number Diff line change @@ -90,8 +90,7 @@ public function testCreateStartAndRemoveContainer()
9090 // get all events between starting and removing for this container
9191 $ promise = $ this ->client ->events ($ start , $ end , array ('container ' => array ($ container ['Id ' ])));
9292 $ ret = \React \Async \await ($ promise );
93-
94- $ this ->assertIsArray ($ ret );
93+ assert (is_array ($ ret ));
9594
9695 $ status = array (); // array_column($ret, 'status'); // PHP 5.5+
9796 foreach ($ ret as $ one ) {
You can’t perform that action at this time.
0 commit comments