Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php')
-rw-r--r--vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php b/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php
new file mode 100644
index 0000000..87576ca
--- /dev/null
+++ b/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php
@@ -0,0 +1,15 @@
+<?php
+class ClassThatImplementsSerializable implements Serializable
+{
+ public function serialize()
+ {
+ return get_object_vars($this);
+ }
+
+ public function unserialize($serialized)
+ {
+ foreach (unserialize($serialized) as $key => $value) {
+ $this->{$key} = $value;
+ }
+ }
+}