Kahlan\Spec\Mock\Patcher::findFile PHP Method

findFile() public method

The JIT find file patcher.
public findFile ( object $loader, string $class, string $file ) : string
$loader object The autloader instance.
$class string The fully-namespaced class name.
$file string The correponding finded file path.
return string The patched file path.
    public function findFile($loader, $class, $file)
    {
        $args = func_get_args();
        $self = isset($this) ? $this : get_called_class();
        if ($pointcut = Pointcut::before(__METHOD__, $self, $args)) {
            return $pointcut($args, $self);
        }
        return $file;
    }