File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ install:
18
18
- composer install
19
19
20
20
script :
21
+ - ./vendor/bin/phpunit -v
21
22
- ./vendor/bin/phpunit -v --coverage-text --coverage-clover=./build/logs/clover.xml
22
23
23
24
after_script :
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ public function getPromiseTestAdapter(callable $canceller = null)
23
23
/** @test */
24
24
public function shouldRejectWithoutCreatingGarbageCyclesIfCancellerRejectsWithException ()
25
25
{
26
+ if ($ this ->getTestResultObject ()->getCollectCodeCoverageInformation () === true ) {
27
+ $ this ->markTestSkipped ('This test has memory leaks when code coverage is collected ' );
28
+ }
29
+
26
30
gc_collect_cycles ();
27
31
$ deferred = new Deferred (function ($ resolve , $ reject ) {
28
32
$ reject (new \Exception ('foo ' ));
@@ -36,6 +40,10 @@ public function shouldRejectWithoutCreatingGarbageCyclesIfCancellerRejectsWithEx
36
40
/** @test */
37
41
public function shouldRejectWithoutCreatingGarbageCyclesIfParentCancellerRejectsWithException ()
38
42
{
43
+ if ($ this ->getTestResultObject ()->getCollectCodeCoverageInformation () === true ) {
44
+ $ this ->markTestSkipped ('This test has memory leaks when code coverage is collected ' );
45
+ }
46
+
39
47
gc_collect_cycles ();
40
48
$ deferred = new Deferred (function ($ resolve , $ reject ) {
41
49
$ reject (new \Exception ('foo ' ));
@@ -49,6 +57,10 @@ public function shouldRejectWithoutCreatingGarbageCyclesIfParentCancellerRejects
49
57
/** @test */
50
58
public function shouldRejectWithoutCreatingGarbageCyclesIfCancellerHoldsReferenceAndExplicitlyRejectWithException ()
51
59
{
60
+ if ($ this ->getTestResultObject ()->getCollectCodeCoverageInformation () === true ) {
61
+ $ this ->markTestSkipped ('This test has memory leaks when code coverage is collected ' );
62
+ }
63
+
52
64
gc_collect_cycles ();
53
65
$ deferred = new Deferred (function () use (&$ deferred ) { });
54
66
$ deferred ->reject (new \Exception ('foo ' ));
You can’t perform that action at this time.
0 commit comments