aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/php/vendor/react/event-loop/tests/TestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'assets/php/vendor/react/event-loop/tests/TestCase.php')
-rwxr-xr-xassets/php/vendor/react/event-loop/tests/TestCase.php53
1 files changed, 0 insertions, 53 deletions
diff --git a/assets/php/vendor/react/event-loop/tests/TestCase.php b/assets/php/vendor/react/event-loop/tests/TestCase.php
deleted file mode 100755
index dbdd54c..0000000
--- a/assets/php/vendor/react/event-loop/tests/TestCase.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-namespace React\Tests\EventLoop;
-
-use PHPUnit\Framework\TestCase as BaseTestCase;
-use React\EventLoop\LoopInterface;
-
-class TestCase extends BaseTestCase
-{
- protected function expectCallableExactly($amount)
- {
- $mock = $this->createCallableMock();
- $mock
- ->expects($this->exactly($amount))
- ->method('__invoke');
-
- return $mock;
- }
-
- protected function expectCallableOnce()
- {
- $mock = $this->createCallableMock();
- $mock
- ->expects($this->once())
- ->method('__invoke');
-
- return $mock;
- }
-
- protected function expectCallableNever()
- {
- $mock = $this->createCallableMock();
- $mock
- ->expects($this->never())
- ->method('__invoke');
-
- return $mock;
- }
-
- protected function createCallableMock()
- {
- return $this->getMockBuilder('React\Tests\EventLoop\CallableStub')->getMock();
- }
-
- protected function tickLoop(LoopInterface $loop)
- {
- $loop->futureTick(function () use ($loop) {
- $loop->stop();
- });
-
- $loop->run();
- }
-}