diff --git a/tests/Core/ApplicationTest.php b/tests/Core/ApplicationTest.php index d785f27..0d53234 100644 --- a/tests/Core/ApplicationTest.php +++ b/tests/Core/ApplicationTest.php @@ -235,7 +235,6 @@ public function testMiddlewareAliases(): void // Test that middleware aliases are properly configured $reflection = new \ReflectionClass($this->app); $property = $reflection->getProperty('middlewareAliases'); - $property->setAccessible(true); $aliases = $property->getValue($this->app); // 'rate-limiter' removed in 4.0.0: the RateLimiter did not limit under PHP-FPM (SPEC-093) diff --git a/tests/Database/DatabaseDsnTest.php b/tests/Database/DatabaseDsnTest.php index 5dc320e..38e4630 100644 --- a/tests/Database/DatabaseDsnTest.php +++ b/tests/Database/DatabaseDsnTest.php @@ -19,7 +19,6 @@ class DatabaseDsnTest extends TestCase private function dsn(string $driver, array $config): string { $method = new \ReflectionMethod(Database::class, 'buildDsn'); - $method->setAccessible(true); $dsn = $method->invoke(null, $driver, $config + ['database' => 'app']); $this->assertIsString($dsn); diff --git a/tests/Integration/TestHttpClient.php b/tests/Integration/TestHttpClient.php index 8358e36..3ac2b0f 100644 --- a/tests/Integration/TestHttpClient.php +++ b/tests/Integration/TestHttpClient.php @@ -97,7 +97,6 @@ private function isAppBooted(): bool { $reflection = new \ReflectionClass($this->app); $booted = $reflection->getProperty('booted'); - $booted->setAccessible(true); return (bool) $booted->getValue($this->app); }