Skip to content

Commit 12414a0

Browse files
committed
Fix attribute accessibility issue
1 parent 0813437 commit 12414a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/HeaderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public function testRfc822ParseHeaders() {
8181
->getMock();
8282

8383
$config = new \ReflectionProperty($mock, 'config');
84+
$config->setAccessible(true);
8485
$config->setValue($mock, ['rfc822' => true]);
8586

8687
$mockHeader = "Content-Type: text/csv; charset=WINDOWS-1252; name*0=\"TH_Is_a_F ile name example 20221013.c\"; name*1=sv\r\nContent-Transfer-Encoding: quoted-printable\r\nContent-Disposition: attachment; filename*0=\"TH_Is_a_F ile name example 20221013.c\"; filename*1=\"sv\"\r\n";
@@ -109,6 +110,7 @@ public function testExtractHeaderExtensions() {
109110
];
110111

111112
$attributes = new \ReflectionProperty($mock, 'attributes');
113+
$attributes->setAccessible(true);
112114
$attributes->setValue($mock, $mockAttributes);
113115

114116
$method->invoke($mock);

0 commit comments

Comments
 (0)