Skip to content

Commit f0d12c9

Browse files
authored
Remove redundant setAccessible methods (#5811)
1 parent 24ee7cb commit f0d12c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/RedisTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
* @coversNothing
4646
*/
4747
#[CoversNothing]
48+
/**
49+
* @internal
50+
* @coversNothing
51+
*/
4852
class RedisTest extends TestCase
4953
{
5054
protected function tearDown(): void
@@ -95,7 +99,6 @@ public function testHasAlreadyBeenBoundToAnotherCoroutine()
9599
$redis = $this->getRedis();
96100
$ref = new ReflectionClass($redis);
97101
$method = $ref->getMethod('getConnection');
98-
$method->setAccessible(true);
99102

100103
go(function () use ($chan, $redis, $method) {
101104
$id = null;
@@ -128,7 +131,6 @@ public function testHasAlreadyBeenBoundToAnotherCoroutine()
128131

129132
$chan->pop();
130133
$factory = $ref->getProperty('factory');
131-
$factory->setAccessible(true);
132134
$factory = $factory->getValue($redis);
133135
$pool = $factory->getPool('default');
134136
$pool->flushAll();

0 commit comments

Comments
 (0)