You are here

public function Redis_Tests_Lock_LockingUnitTestCase::tearDown in Redis 7.3

Overrides Redis_Tests_AbstractUnitTestCase::tearDown

File

lib/Redis/Tests/Lock/LockingUnitTestCase.php, line 20

Class

Redis_Tests_Lock_LockingUnitTestCase

Code

public function tearDown() {
  if (!empty($this->backends)) {
    foreach ($this->backends as $backend) {
      $backend
        ->lockReleaseAll();
    }
    $this->backends = array();
  }
  parent::tearDown();
}