RemoveBuiltinMethodsThatAreFinalPass
in package
The standard Mockery\Mock class includes some methods to ease mocking, such as __wakeup, however if the target has a final __wakeup method, it can't be mocked. This pass removes the builtin methods where they are final on the target
Table of Contents
Properties
$methods
protected
mixed
$methods
= array('__wakeup' => '/public function __wakeup\(\)\s+\{.*?\}/sm')
Methods
apply()
public
apply(mixed $code, MockConfiguration $config) : mixed
Parameters
- $code : mixed
- $config : MockConfiguration