From fc9401f04a3aca5abb22f87ebc210de8afe11d32 Mon Sep 17 00:00:00 2001 From: marvin-borner@live.com Date: Tue, 10 Apr 2018 21:50:16 +0200 Subject: Initial Commit --- .../react/socket/tests/Stub/CallableStub.php | 10 ++++ .../react/socket/tests/Stub/ConnectionStub.php | 63 ++++++++++++++++++++++ .../vendor/react/socket/tests/Stub/ServerStub.php | 18 +++++++ 3 files changed, 91 insertions(+) create mode 100644 assets/php/vendor/react/socket/tests/Stub/CallableStub.php create mode 100644 assets/php/vendor/react/socket/tests/Stub/ConnectionStub.php create mode 100644 assets/php/vendor/react/socket/tests/Stub/ServerStub.php (limited to 'assets/php/vendor/react/socket/tests/Stub') diff --git a/assets/php/vendor/react/socket/tests/Stub/CallableStub.php b/assets/php/vendor/react/socket/tests/Stub/CallableStub.php new file mode 100644 index 0000000..1b197eb --- /dev/null +++ b/assets/php/vendor/react/socket/tests/Stub/CallableStub.php @@ -0,0 +1,10 @@ +data .= $data; + + return true; + } + + public function end($data = null) + { + } + + public function close() + { + } + + public function getData() + { + return $this->data; + } + + public function getRemoteAddress() + { + return '127.0.0.1'; + } +} diff --git a/assets/php/vendor/react/socket/tests/Stub/ServerStub.php b/assets/php/vendor/react/socket/tests/Stub/ServerStub.php new file mode 100644 index 0000000..d9e74f4 --- /dev/null +++ b/assets/php/vendor/react/socket/tests/Stub/ServerStub.php @@ -0,0 +1,18 @@ +