diff --git a/tests/unit/Option/SomeTest.php b/tests/unit/Option/SomeTest.php index eaac2953..b3f50a98 100644 --- a/tests/unit/Option/SomeTest.php +++ b/tests/unit/Option/SomeTest.php @@ -85,14 +85,15 @@ public function testContains(): void public function testApply(): void { $spy = new Ref(1); + $actual = 2; - $option = Option\some(2); + $option = Option\some($actual); $option->apply(static function (int $value) use ($spy) { $spy->value += $value; }); static::assertSame(3, $spy->value); - static::assertSame(2, $option->unwrap()); + static::assertSame($actual, $option->unwrap()); } public function testMap(): void