mageekguy\atoum\test::setReflectionMethodFactory PHP Метод

setReflectionMethodFactory() публичный Метод

public setReflectionMethodFactory ( closure $factory = null )
$factory closure
    public function setReflectionMethodFactory(\closure $factory = null)
    {
        $this->reflectionMethodFactory = $factory ?: function ($class, $method) {
            return new \reflectionMethod($class, $method);
        };
        return $this;
    }
test