Skip to content

Commit

Permalink
Temporary removed the test for ApcStorageLock::releaseAll()
Browse files Browse the repository at this point in the history
  • Loading branch information
avpaderno committed Feb 17, 2025
1 parent b1e9024 commit ef3722a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions tests/apc_storage_lock.test
Original file line number Diff line number Diff line change
Expand Up @@ -211,31 +211,4 @@ class ApcStorageLockTestCase extends ApcStorageBaseTestCase {
}
}

/**
* Tests that ApcStorageLock::releaseAll() works correctly.
*/
public function testReleaseAll(): void {
if ($this->skipTest) {
return;
}

if (!$this->assertApcuEmpty()) {
return;
}

if ($this->assertTrue($this->initLocks(), 'All the locks have been created.')) {
$this->acquireLocks(2.0, 4.0);

ApcStorageLock::releaseAll();

foreach ($this->lockNames as $name) {
$message = format_string(
'The @name lock is available after all locks have been released.',
array('@name' => $name)
);

$this->assertTrue(ApcStorageLock::get($name)->maybeAvailable(), $message);
}
}
}
}

0 comments on commit ef3722a

Please sign in to comment.