File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,16 @@ private function findSutFqcn($test)
102
102
return $ sutFqcn ;
103
103
}
104
104
105
+ public function __sleep ()
106
+ {
107
+ throw new \BadMethodCallException ('Cannot serialize ' .__CLASS__ );
108
+ }
109
+
110
+ public function __wakeup ()
111
+ {
112
+ throw new \BadMethodCallException ('Cannot unserialize ' .__CLASS__ );
113
+ }
114
+
105
115
public function __destruct ()
106
116
{
107
117
if (!$ this ->warnings ) {
Original file line number Diff line number Diff line change @@ -83,6 +83,16 @@ public function __construct(array $mockedNamespaces = array())
83
83
}
84
84
}
85
85
86
+ public function __sleep ()
87
+ {
88
+ throw new \BadMethodCallException ('Cannot serialize ' .__CLASS__ );
89
+ }
90
+
91
+ public function __wakeup ()
92
+ {
93
+ throw new \BadMethodCallException ('Cannot unserialize ' .__CLASS__ );
94
+ }
95
+
86
96
public function __destruct ()
87
97
{
88
98
if (0 < $ this ->state ) {
You can’t perform that action at this time.
0 commit comments