diff --git a/tests/PromiseFulfillsTest.php b/tests/PromiseFulfillsTest.php index 2107920..f2fda3e 100644 --- a/tests/PromiseFulfillsTest.php +++ b/tests/PromiseFulfillsTest.php @@ -31,7 +31,7 @@ public function it_fails_when_promise_doesnt_fulfill_in_a_specified_timeout(): v $deferred = new Deferred(); $deferred->reject(); - $promise = resolve($timeToResolve = 3, $this->loop); + $promise = resolve($timeToResolve = 3, $this->eventLoop()); $promise->then(static function() use ($deferred) { $deferred->resolve(); diff --git a/tests/PromiseFulfillsWithInstanceOfTest.php b/tests/PromiseFulfillsWithInstanceOfTest.php index cc81bcb..337564b 100644 --- a/tests/PromiseFulfillsWithInstanceOfTest.php +++ b/tests/PromiseFulfillsWithInstanceOfTest.php @@ -57,7 +57,7 @@ public function it_fails_when_promise_doesnt_fulfill_in_a_specified_timeout(): v $deferred = new Deferred(); $deferred->reject(); - $promise = resolve($timeToResolve = 3, $this->loop); + $promise = resolve($timeToResolve = 3, $this->eventLoop()); $promise->then( static function() use ($deferred){ diff --git a/tests/PromiseFulfillsWithTest.php b/tests/PromiseFulfillsWithTest.php index cd87d05..1325351 100644 --- a/tests/PromiseFulfillsWithTest.php +++ b/tests/PromiseFulfillsWithTest.php @@ -58,7 +58,7 @@ public function it_fails_when_promise_doesnt_fulfill_in_a_specified_timeout(): v $deferred = new Deferred(); $deferred->reject(); - $promise = resolve($timeToResolve = 3, $this->loop); + $promise = resolve($timeToResolve = 3, $this->eventLoop()); $promise->then( static function () use ($deferred) {