maker = new CallableMaker; } public function testCallableFromInstanceMethod() { $callable = $this->maker->callableFromInstanceMethod("instanceMethod"); $this->assertInternalType("callable", $callable); $this->assertSame(\sprintf("%s::%s", CallableMaker::class, "instanceMethod"), $callable()); } public function testCallableFromStaticMethod() { $callable = $this->maker->callableFromInstanceMethod("staticMethod"); $this->assertInternalType("callable", $callable); $this->assertSame(\sprintf("%s::%s", CallableMaker::class, "staticMethod"), $callable()); } }