@@ -137,7 +137,6 @@ public function testMatchRequestWithUrlMatcherInterface()
137
137
$ matcher ->expects ($ this ->once ())->method ('match ' );
138
138
139
139
$ p = new \ReflectionProperty ($ this ->router , 'matcher ' );
140
- $ p ->setAccessible (true );
141
140
$ p ->setValue ($ this ->router , $ matcher );
142
141
143
142
$ this ->router ->matchRequest (Request::create ('/ ' ));
@@ -149,7 +148,6 @@ public function testMatchRequestWithRequestMatcherInterface()
149
148
$ matcher ->expects ($ this ->once ())->method ('matchRequest ' );
150
149
151
150
$ p = new \ReflectionProperty ($ this ->router , 'matcher ' );
152
- $ p ->setAccessible (true );
153
151
$ p ->setValue ($ this ->router , $ matcher );
154
152
155
153
$ this ->router ->matchRequest (Request::create ('/ ' ));
@@ -170,7 +168,6 @@ public function testDefaultLocaleIsPassedToGeneratorClass()
170
168
$ this ->assertInstanceOf (UrlGeneratorInterface::class, $ generator );
171
169
172
170
$ p = new \ReflectionProperty ($ generator , 'defaultLocale ' );
173
- $ p ->setAccessible (true );
174
171
175
172
$ this ->assertSame ('hr ' , $ p ->getValue ($ generator ));
176
173
}
@@ -190,7 +187,6 @@ public function testDefaultLocaleIsPassedToCompiledGeneratorCacheClass()
190
187
$ this ->assertInstanceOf (UrlGeneratorInterface::class, $ generator );
191
188
192
189
$ p = new \ReflectionProperty ($ generator , 'defaultLocale ' );
193
- $ p ->setAccessible (true );
194
190
195
191
$ this ->assertSame ('hr ' , $ p ->getValue ($ generator ));
196
192
}
0 commit comments