assertInstanceOf(HostsFile::class, yield $loader->loadHosts()); }); } public function testReturnsEmptyErrorOnFileNotFound() { Loop::run(function () { $loader = new HostLoader(__DIR__ . "/data/hosts.not.found"); $this->assertSame(null, yield $loader->loadHosts()); }); } }