File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 6
6
- 5.6
7
7
- 7.0
8
8
- 7.1
9
+ - 7.2
10
+ - 7.3
11
+ - 7.4
9
12
- nightly # ignore errors, see below
10
13
- hhvm # ignore errors, see below
11
14
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ public function progressIsAnAliasForNotify()
44
44
public function shouldRejectWithoutCreatingGarbageCyclesIfCancellerRejectsWithException ()
45
45
{
46
46
gc_collect_cycles ();
47
+ gc_collect_cycles (); // clear twice to avoid leftovers in PHP 7.4 with ext-xdebug and code coverage turned on
48
+
47
49
$ deferred = new Deferred (function ($ resolve , $ reject ) {
48
50
$ reject (new \Exception ('foo ' ));
49
51
});
@@ -57,6 +59,8 @@ public function shouldRejectWithoutCreatingGarbageCyclesIfCancellerRejectsWithEx
57
59
public function shouldRejectWithoutCreatingGarbageCyclesIfParentCancellerRejectsWithException ()
58
60
{
59
61
gc_collect_cycles ();
62
+ gc_collect_cycles (); // clear twice to avoid leftovers in PHP 7.4 with ext-xdebug and code coverage turned on
63
+
60
64
$ deferred = new Deferred (function ($ resolve , $ reject ) {
61
65
$ reject (new \Exception ('foo ' ));
62
66
});
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ public function shouldThrowExceptionIfConstructedWithAPromise()
52
52
public function shouldNotLeaveGarbageCyclesWhenRemovingLastReferenceToFulfilledPromiseWithAlwaysFollowers ()
53
53
{
54
54
gc_collect_cycles ();
55
+ gc_collect_cycles (); // clear twice to avoid leftovers in PHP 7.4 with ext-xdebug and code coverage turned on
56
+
55
57
$ promise = new FulfilledPromise (1 );
56
58
$ promise ->always (function () {
57
59
throw new \RuntimeException ();
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ public function shouldRejectIfResolverThrowsException()
52
52
public function shouldResolveWithoutCreatingGarbageCyclesIfResolverResolvesWithException ()
53
53
{
54
54
gc_collect_cycles ();
55
+ gc_collect_cycles (); // clear twice to avoid leftovers in PHP 7.4 with ext-xdebug and code coverage turned on
56
+
55
57
$ promise = new Promise (function ($ resolve ) {
56
58
$ resolve (new \Exception ('foo ' ));
57
59
});
You can’t perform that action at this time.
0 commit comments