[ "localhost" => "127.0.0.1", ], ], $loader->loadHosts()); } public function testReturnsEmptyErrorOnFileNotFound(): void { $loader = new HostLoader(__DIR__ . "/data/hosts.not.found"); self::assertSame([], $loader->loadHosts()); } public function testIgnoresInvalidNames(): void { $loader = new HostLoader(__DIR__ . "/data/hosts.invalid.name"); self::assertSame([ DnsRecord::A => [ "localhost" => "127.0.0.1", ], ], $loader->loadHosts()); } }