@@ -69,7 +69,6 @@ public function testUrlsPerJob(string $jobClass, int $urlsPerJob): void
6969 $ job = singleton ($ jobClass );
7070
7171 $ method = new ReflectionMethod (Job::class, 'getUrlsPerJob ' );
72- $ method ->setAccessible (true );
7372 $ this ->assertEquals ($ urlsPerJob , $ method ->invoke ($ job ));
7473 }
7574
@@ -82,7 +81,6 @@ public function testChunkSize(string $jobClass, int $chunkSize): void
8281 $ job = singleton ($ jobClass );
8382
8483 $ method = new ReflectionMethod (Job::class, 'getChunkSize ' );
85- $ method ->setAccessible (true );
8684 $ this ->assertEquals ($ chunkSize , $ method ->invoke ($ job ));
8785 }
8886
@@ -138,7 +136,6 @@ public function testGetUrls(): void
138136 $ urlService = UrlBundleService::create ();
139137 $ urlService ->addUrls ($ urls );
140138 $ method = new ReflectionMethod ($ urlService , 'getUrls ' );
141- $ method ->setAccessible (true );
142139 $ resultUrls = $ method ->invoke ($ urlService );
143140
144141 $ this ->assertEqualsCanonicalizing ($ expectedUrls , $ resultUrls );
@@ -156,7 +153,6 @@ public function testGetUrlsDontStripStage(): void
156153 $ urlService = UrlBundleService::create ();
157154 $ urlService ->addUrls ($ urls );
158155 $ method = new ReflectionMethod ($ urlService , 'getUrls ' );
159- $ method ->setAccessible (true );
160156 $ resultUrls = $ method ->invoke ($ urlService );
161157
162158 $ this ->assertEqualsCanonicalizing ($ urls , $ resultUrls );
@@ -169,8 +165,6 @@ public function testStripStageParam(string $url, string $expectedUrl): void
169165
170166 $ urlService = UrlBundleService::create ();
171167 $ method = new ReflectionMethod ($ urlService , 'stripStageParam ' );
172- $ method ->setAccessible (true );
173-
174168 $ this ->assertEquals ($ expectedUrl , $ method ->invoke ($ urlService , $ url ));
175169 }
176170
0 commit comments