Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Mar 13, 2024
1 parent 4c8acea commit 66e9ca1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/UtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 66e9ca1

Please sign in to comment.