Pass
Interfaces, Classes and Traits
- Pass
- AvoidMethodClashPass
- CallTypeHintPass
- ClassNamePass
- ClassPass
- ConstantsPass
- InstanceMockPass
- InterfacePass
- MagicMethodTypeHintsPass
- MethodDefinitionPass
- RemoveBuiltinMethodsThatAreFinalPass
- 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
- RemoveDestructorPass
- Remove mock's empty destructor if we tend to use original class destructor
- RemoveUnserializeForInternalSerializableClassesPass
- Internal classes can not be instantiated with the newInstanceWithoutArgs reflection method, so need the serialization hack. If the class also implements Serializable, we need to replace the standard unserialize method definition with a dummy
- TraitPass