PHP Class Kahlan\Spec\Mock\Patcher

Datei anzeigen Open project: crysalead/kahlan

Public Methods

Method Description
findFile ( object $loader, string $class, string $file ) : string The JIT find file patcher.
patchable ( string $class ) : boolean The JIT patchable checker.
process ( NodeDef $node, string $path = null ) : NodeDef The JIT patcher.

Method Details

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.

patchable() public method

The JIT patchable checker.
public patchable ( string $class ) : boolean
$class string The fully-namespaced class name to check.
return boolean

process() public method

The JIT patcher.
public process ( NodeDef $node, string $path = null ) : NodeDef
$node NodeDef The node to patch.
$path string The file path of the source code.
return NodeDef The patched node.