From b29fdbd616656c63494c5392379a8adc221009c0 Mon Sep 17 00:00:00 2001 From: Aleksandr Yulin Date: Wed, 13 Mar 2019 00:45:28 +0300 Subject: [PATCH] fixed null callable --- test/PromiseTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/PromiseTest.php b/test/PromiseTest.php index 069dc2a..f4627f7 100644 --- a/test/PromiseTest.php +++ b/test/PromiseTest.php @@ -34,8 +34,7 @@ public function testPromise(): void $promise2 = $promise->then(function ($value) { return $value + 1; }); - $promise3 = $promise->then(function () { - }); + $promise3 = $promise->then(); $promise->then(function ($value) { $this->assertEquals(41, $value); }); @@ -43,7 +42,7 @@ public function testPromise(): void $this->assertEquals(43, $value); }); $promise3->then(function ($value) { - $this->assertNull($value); + $this->assertEquals(41, $value); }); $promise->wait(); }