diff --git a/tests/unit/Option/NoneTest.php b/tests/unit/Option/NoneTest.php index 85aa8f7e..42e23b92 100644 --- a/tests/unit/Option/NoneTest.php +++ b/tests/unit/Option/NoneTest.php @@ -90,12 +90,12 @@ public function testApply(): void $spy = new Ref(1); $option = Option\none(); - $option->apply(static function (int $value) use ($spy) { + $actual = $option->apply(static function (int $value) use ($spy) { $spy->value += $value; }); static::assertSame(1, $spy->value); - static::assertTrue($option->isNone()); + static::assertSame($option, $actual); } public function testMap(): void