From 66e9ca12cdb9481e1bb9497cb3d5db491f08eaa8 Mon Sep 17 00:00:00 2001 From: rotimi Date: Wed, 13 Mar 2024 17:43:20 -0600 Subject: [PATCH] Tweak --- tests/UtilsTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index caa08a8..063bc80 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -32,11 +32,7 @@ public function testThatGetClosureFromCallableWorksAsExpected() { $this->assertTrue( Utils::getClosureFromCallable(Descendant::class.'::who') instanceof Closure ); // static method call string syntax - - $this->assertTrue( - Utils::getClosureFromCallable([Descendant::class, 'parent::who']) instanceof Closure - ); // parent class' static method call - + $this->assertTrue( Utils::getClosureFromCallable( (new Descendant()) ) instanceof Closure ); // instance of class that has __invoke()