From dc6f907b26079168ea378be2b1c7583c9610ba7e Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 30 Jan 2024 22:01:16 +0100 Subject: [PATCH] fix testStaticFunctionMapping to actually map a static method --- tests/DispatcherTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/DispatcherTest.php b/tests/DispatcherTest.php index c3914b4..6a9ff3d 100644 --- a/tests/DispatcherTest.php +++ b/tests/DispatcherTest.php @@ -92,11 +92,11 @@ class DispatcherTest extends TestCase // Map a static function public function testStaticFunctionMapping() { - $this->dispatcher->set('map2', 'tests\classes\Hello::sayHi'); + $this->dispatcher->set('map2', 'tests\classes\Hello::sayBye'); $result = $this->dispatcher->run('map2'); - self::assertEquals('hello', $result); + self::assertEquals('goodbye', $result); } // Map a class method