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()