diff --git a/packages/framework/tests/Unit/CustomExceptionsTest.php b/packages/framework/tests/Unit/CustomExceptionsTest.php index fad2c5e664e..dc6e9b460f7 100644 --- a/packages/framework/tests/Unit/CustomExceptionsTest.php +++ b/packages/framework/tests/Unit/CustomExceptionsTest.php @@ -201,32 +201,4 @@ public function testInvalidConfigurationExceptionWithNamespaceAndKey() $this->assertStringContainsString('config'.DIRECTORY_SEPARATOR.'hyde.php', $exception->getFile()); $this->assertGreaterThan(0, $exception->getLine()); } - - public function testInvalidConfigurationExceptionWithNonExistentNamespace() - { - $this->expectException(\AssertionError::class); - new InvalidConfigurationException('Invalid configuration.', 'non_existent', 'key'); - } - - public function testInvalidConfigurationExceptionWithNonExistentKey() - { - $this->expectException(\AssertionError::class); - new InvalidConfigurationException('Invalid configuration.', 'app', 'non_existent_key'); - } - - public function testInvalidConfigurationExceptionFindConfigLine() - { - $exception = new class('Invalid configuration.', 'hyde', 'name') extends InvalidConfigurationException { - public function exposedFindConfigLine(string $namespace, string $key): array - { - return $this->findConfigLine($namespace, $key); - } - }; - - [$file, $line] = $exception->exposedFindConfigLine('app', 'debug'); - - $this->assertFileExists($file); - $this->assertIsInt($line); - $this->assertGreaterThan(0, $line); - } }