malkusch\lock\util\DoubleCheckedLockingTest::testCheckFailsAcquiresNoLock PHP Метод

testCheckFailsAcquiresNoLock() публичный Метод

Tests that the lock will not be acquired for a failing test.
    public function testCheckFailsAcquiresNoLock()
    {
        $this->mutex->expects($this->never())->method("synchronized");
        $this->checkedLocking->setCheck(function () {
            return false;
        });
        $this->checkedLocking->then(function () {
            $this->fail();
        });
    }