Class 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
Namespace: Mockery\Generator\StringManipulation\Pass
Located at Mockery/Generator/StringManipulation/Pass/RemoveUnserializeForInternalSerializableClassesPass.php
Located at Mockery/Generator/StringManipulation/Pass/RemoveUnserializeForInternalSerializableClassesPass.php
public
|
|
protected
|
string |
DUMMY_METHOD_DEFINITION
|
#
'public function unserialize($string) {} '
|