Skip to content

Commit dfe085d

Browse files
committed
Remove \ReflectionProperty::setAccessible(true) calls
1 parent c8000b5 commit dfe085d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Tests/Transport/RoundRobinTransportTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public function testSendAllDead()
6262
$t2->expects($this->once())->method('send')->will($this->throwException(new TransportException()));
6363
$t = new RoundRobinTransport([$t1, $t2]);
6464
$p = new \ReflectionProperty($t, 'cursor');
65-
$p->setAccessible(true);
6665
$p->setValue($t, 0);
6766

6867
try {

Tests/Transport/Smtp/SmtpTransportTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ private function invokeAssertResponseCode(string $response, array $codes): void
162162
{
163163
$transport = new SmtpTransport($this->getMockForAbstractClass(AbstractStream::class));
164164
$m = new \ReflectionMethod($transport, 'assertResponseCode');
165-
$m->setAccessible(true);
166165
$m->invoke($transport, $response, $codes);
167166
}
168167

0 commit comments

Comments
 (0)