We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f8d95 commit 9b605a3Copy full SHA for 9b605a3
tests/MutexTest.php
@@ -73,4 +73,18 @@ public function it_supports_memcached_strategy()
73
$expectedStrategy = new MemcachedLock(Cache::getStore()->getMemcached());
74
$this->assertEquals($expectedStrategy, $mutex->getStrategy());
75
}
76
+
77
+ /**
78
+ * @test
79
+ * @runInSeparateProcess
80
+ * @preserveGlobalState disabled
81
+ */
82
+ public function it_delegates_public_method_calls_to_ninja_mutex()
83
+ {
84
+ $ninja = Mockery::mock('overload:NinjaMutex\Mutex');
85
+ $ninja->shouldReceive('isLocked')->once();
86
87
+ $mutex = new Mutex($this->command);
88
+ $mutex->isLocked();
89
+ }
90
0 commit comments