Пример #1
0
 public function setUp()
 {
     $factory = new ConnectionFactory();
     $dataLoader = new DataLoader();
     $data = $dataLoader->load(__DIR__ . '/../data/tld.json');
     $this->client = new AvailabilityClient(new WhoisClient($factory, $data), $data);
 }
Пример #2
0
 /**
  * @test
  * @covers Cocur\Domain\Data\DataLoader::load()
  * @expectedException Cocur\Domain\Data\DataLoadException
  */
 public function loadNotExistingFile()
 {
     $this->loader->load(__DIR__ . '/../fixtures/invalid.json');
 }