File tree Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -26,4 +26,5 @@ install:
26
26
- composer install --no-interaction
27
27
28
28
script :
29
- - vendor/bin/phpunit --coverage-text
29
+ - ./vendor/bin/phpunit -v
30
+ - ./vendor/bin/phpunit -v --coverage-text --coverage-clover=./build/logs/clover.xml
Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ public function testWaitingForPromiseToRejectDoesNotLeaveGarbageCycles()
53
53
$ this ->markTestSkipped ('Not supported on legacy Promise v1 API ' );
54
54
}
55
55
56
+ if ($ this ->getTestResultObject ()->getCollectCodeCoverageInformation () === true ) {
57
+ $ this ->markTestSkipped ('This test has memory leaks when code coverage is collected ' );
58
+ }
59
+
56
60
gc_collect_cycles ();
57
61
58
62
$ promise = Timer \reject (0.01 , $ this ->loop );
@@ -68,6 +72,10 @@ public function testCancellingPromiseDoesNotLeaveGarbageCycles()
68
72
$ this ->markTestSkipped ('Not supported on legacy Promise v1 API ' );
69
73
}
70
74
75
+ if ($ this ->getTestResultObject ()->getCollectCodeCoverageInformation () === true ) {
76
+ $ this ->markTestSkipped ('This test has memory leaks when code coverage is collected ' );
77
+ }
78
+
71
79
gc_collect_cycles ();
72
80
73
81
$ promise = Timer \reject (0.01 , $ this ->loop );
Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ public function testWaitingForPromiseToResolveDoesNotLeaveGarbageCycles()
75
75
$ this ->markTestSkipped ('Not supported on legacy Promise v1 API ' );
76
76
}
77
77
78
+ if ($ this ->getTestResultObject ()->getCollectCodeCoverageInformation () === true ) {
79
+ $ this ->markTestSkipped ('This test has memory leaks when code coverage is collected ' );
80
+ }
81
+
78
82
gc_collect_cycles ();
79
83
80
84
$ promise = Timer \resolve (0.01 , $ this ->loop );
@@ -90,6 +94,10 @@ public function testCancellingPromiseDoesNotLeaveGarbageCycles()
90
94
$ this ->markTestSkipped ('Not supported on legacy Promise v1 API ' );
91
95
}
92
96
97
+ if ($ this ->getTestResultObject ()->getCollectCodeCoverageInformation () === true ) {
98
+ $ this ->markTestSkipped ('This test has memory leaks when code coverage is collected ' );
99
+ }
100
+
93
101
gc_collect_cycles ();
94
102
95
103
$ promise = Timer \resolve (0.01 , $ this ->loop );
Original file line number Diff line number Diff line change @@ -176,6 +176,10 @@ public function testWaitingForPromiseToResolveBeforeTimeoutDoesNotLeaveGarbageCy
176
176
$ this ->markTestSkipped ('Not supported on legacy Promise v1 API ' );
177
177
}
178
178
179
+ if ($ this ->getTestResultObject ()->getCollectCodeCoverageInformation () === true ) {
180
+ $ this ->markTestSkipped ('This test has memory leaks when code coverage is collected ' );
181
+ }
182
+
179
183
gc_collect_cycles ();
180
184
181
185
$ promise = Timer \resolve (0.01 , $ this ->loop );
@@ -194,6 +198,10 @@ public function testWaitingForPromiseToRejectBeforeTimeoutDoesNotLeaveGarbageCyc
194
198
$ this ->markTestSkipped ('Not supported on legacy Promise v1 API ' );
195
199
}
196
200
201
+ if ($ this ->getTestResultObject ()->getCollectCodeCoverageInformation () === true ) {
202
+ $ this ->markTestSkipped ('This test has memory leaks when code coverage is collected ' );
203
+ }
204
+
197
205
gc_collect_cycles ();
198
206
199
207
$ promise = Timer \reject (0.01 , $ this ->loop );
You can’t perform that action at this time.
0 commit comments