From cf14306c2b3f82a81f8d56669a71633b4d4b5fce Mon Sep 17 00:00:00 2001 From: marvin-borner@live.com Date: Mon, 16 Apr 2018 21:09:05 +0200 Subject: Main merge to user management system - files are now at /main/public/ --- .../vendor/react/cache/tests/ArrayCacheTest.php | 60 ---------------------- .../php/vendor/react/cache/tests/CallableStub.php | 10 ---- assets/php/vendor/react/cache/tests/TestCase.php | 43 ---------------- 3 files changed, 113 deletions(-) delete mode 100755 assets/php/vendor/react/cache/tests/ArrayCacheTest.php delete mode 100755 assets/php/vendor/react/cache/tests/CallableStub.php delete mode 100755 assets/php/vendor/react/cache/tests/TestCase.php (limited to 'assets/php/vendor/react/cache/tests') diff --git a/assets/php/vendor/react/cache/tests/ArrayCacheTest.php b/assets/php/vendor/react/cache/tests/ArrayCacheTest.php deleted file mode 100755 index eec3739..0000000 --- a/assets/php/vendor/react/cache/tests/ArrayCacheTest.php +++ /dev/null @@ -1,60 +0,0 @@ -cache = new ArrayCache(); - } - - /** @test */ - public function getShouldRejectPromiseForNonExistentKey() - { - $this->cache - ->get('foo') - ->then( - $this->expectCallableNever(), - $this->expectCallableOnce() - ); - } - - /** @test */ - public function setShouldSetKey() - { - $this->cache - ->set('foo', 'bar'); - - $success = $this->createCallableMock(); - $success - ->expects($this->once()) - ->method('__invoke') - ->with('bar'); - - $this->cache - ->get('foo') - ->then($success); - } - - /** @test */ - public function removeShouldRemoveKey() - { - $this->cache - ->set('foo', 'bar'); - - $this->cache - ->remove('foo'); - - $this->cache - ->get('foo') - ->then( - $this->expectCallableNever(), - $this->expectCallableOnce() - ); - } -} diff --git a/assets/php/vendor/react/cache/tests/CallableStub.php b/assets/php/vendor/react/cache/tests/CallableStub.php deleted file mode 100755 index 2f547cd..0000000 --- a/assets/php/vendor/react/cache/tests/CallableStub.php +++ /dev/null @@ -1,10 +0,0 @@ -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\Cache\CallableStub')->getMock(); - } -} -- cgit v1.2.3