From 0e4af7fe022bbd81dfc84b88d2cfeb2dddfc3bfd Mon Sep 17 00:00:00 2001 From: rafageist Date: Wed, 14 Aug 2024 09:27:31 -0300 Subject: [PATCH] fix tests --- tests/BasicTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/BasicTest.php b/tests/BasicTest.php index a470d14..08b49fa 100644 --- a/tests/BasicTest.php +++ b/tests/BasicTest.php @@ -9,7 +9,7 @@ class BasicTest extends TestCase { - public function testScalarConstant(): void + public function testScalarImmutable(): void { laze::define('FOO', fn() => 42); @@ -88,7 +88,7 @@ public function testConstraintFailure(): void laze::define('QUUX', fn() => 42); $this->expectException(\Exception::class); - $this->expectExceptionMessage("Constraint 'Must be a string' failed for lazy constant: QUUX"); + $this->expectExceptionMessage("Constraint 'Must be a string' failed for lazy immutable value: QUUX"); laze::read('QUUX'); }