diff --git a/tests/PromiseTest/RejectTestTrait.php b/tests/PromiseTest/RejectTestTrait.php index 7d6f65fd..063f178a 100644 --- a/tests/PromiseTest/RejectTestTrait.php +++ b/tests/PromiseTest/RejectTestTrait.php @@ -98,6 +98,11 @@ public function rejectShouldMakePromiseImmutable() ->with($this->identicalTo(1)); $adapter->promise() + ->then(null, function ($value) use ($adapter) { + $adapter->reject(3); + + return Promise\reject($value); + }) ->then( $this->expectCallableNever(), $mock diff --git a/tests/PromiseTest/ResolveTestTrait.php b/tests/PromiseTest/ResolveTestTrait.php index b05f7fe8..46f95ad4 100644 --- a/tests/PromiseTest/ResolveTestTrait.php +++ b/tests/PromiseTest/ResolveTestTrait.php @@ -98,6 +98,11 @@ public function resolveShouldMakePromiseImmutable() ->with($this->identicalTo(1)); $adapter->promise() + ->then(function ($value) use ($adapter) { + $adapter->resolve(3); + + return $value; + }) ->then( $mock, $this->expectCallableNever()