public function testClosureDetection() { $callable = CallableReflector::detect(function () { }); $this->assert($callable instanceof \ReflectionFunction, "A Closure was not detected"); }