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 31
31
coverage : xdebug
32
32
ini-file : development
33
33
- 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
35
36
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
37
38
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()
90
90
// get all events between starting and removing for this container
91
91
$ promise = $ this ->client ->events ($ start , $ end , array ('container ' => array ($ container ['Id ' ])));
92
92
$ ret = \React \Async \await ($ promise );
93
-
94
- $ this ->assertIsArray ($ ret );
93
+ assert (is_array ($ ret ));
95
94
96
95
$ status = array (); // array_column($ret, 'status'); // PHP 5.5+
97
96
foreach ($ ret as $ one ) {
You can’t perform that action at this time.
0 commit comments