public function testAddFails() { $this->redis->close(); $this->mutex->synchronized(function () { $this->fail("Code execution is not expected"); }); }