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/Mockable.php')
-rw-r--r--vendor/phpunit/phpunit-mock-objects/tests/_fixture/Mockable.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Mockable.php b/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Mockable.php
new file mode 100644
index 0000000..a7b1825
--- /dev/null
+++ b/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Mockable.php
@@ -0,0 +1,28 @@
+<?php
+class Mockable
+{
+ public $constructorArgs;
+ public $cloned;
+
+ public function __construct($arg1 = null, $arg2 = null)
+ {
+ $this->constructorArgs = [$arg1, $arg2];
+ }
+
+ public function mockableMethod()
+ {
+ // something different from NULL
+ return true;
+ }
+
+ public function anotherMockableMethod()
+ {
+ // something different from NULL
+ return true;
+ }
+
+ public function __clone()
+ {
+ $this->cloned = true;
+ }
+}