1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Tue, 22 Apr 2025 13:32:08 +0200
Subject: Drop tearDown calls
---
tests/Predis/Command/Redis/FCALL_RO_Test.php | 18 ------------------
tests/Predis/Command/Redis/WAITAOF_Test.php | 6 ------
2 files changed, 24 deletions(-)
diff --git a/tests/Predis/Command/Redis/FCALL_RO_Test.php b/tests/Predis/Command/Redis/FCALL_RO_Test.php
index b8da0a3..1e344c0 100644
--- a/tests/Predis/Command/Redis/FCALL_RO_Test.php
+++ b/tests/Predis/Command/Redis/FCALL_RO_Test.php
@@ -128,24 +128,6 @@ class FCALL_RO_Test extends PredisCommandTestCase
$redis->fcall_ro('myfunc', ['key']);
}
- #[RequiresPhpunit('< 10')]
- protected function tearDown(): void
- {
- $this->markTestSkipped('Skip test failing with PHPUnit 10');
- $annotations = TestUtil::parseTestMethodAnnotations(
- get_class($this),
- $this->getName(false)
- );
-
- if (
- isset($annotations['method']['group'])
- && in_array('connected', $annotations['method']['group'], true)
- ) {
- $redis = $this->getClient();
- $redis->function->delete(self::LIB_NAME);
- }
- }
-
public static function argumentsProvider(): array
{
return [
diff --git a/tests/Predis/Command/Redis/WAITAOF_Test.php b/tests/Predis/Command/Redis/WAITAOF_Test.php
index d507c6d..0ba3b1b 100644
--- a/tests/Predis/Command/Redis/WAITAOF_Test.php
+++ b/tests/Predis/Command/Redis/WAITAOF_Test.php
@@ -71,10 +71,4 @@ class WAITAOF_Test extends PredisCommandTestCase
$this->assertEquals('OK', $redis->set('foo', 'bar'));
$this->assertSame([1, 0], $redis->waitaof(1, 0, 0));
}
-
- protected function tearDown(): void
- {
- $redis = $this->getClient();
- $this->assertEquals('OK', $redis->config('set', 'appendonly', 'no'));
- }
}
|