Ejemplo n.º 1
0
 public function testBuild()
 {
     $zone = $this->buildTestZone();
     $zone->addResourceRecord(new ResourceRecord('null'));
     $builder = new AlignedBuilder();
     $output = $builder->build($zone);
     $this->assertEquals($this->expected, $output);
     if (true == $this->getEnvVariable(self::PHP_ENV_PRINT_TEST_ZONE)) {
         $this->printBlock($builder->build($output), 'ALIGNED TEST ZONE');
     }
 }
Ejemplo n.º 2
0
 public function testBuild()
 {
     $zone = $this->buildTestZone();
     $builder = new AlignedBuilder();
     $zoneFile = $builder->build($zone);
     if (true == $this->getEnvVariable(self::PHP_ENV_PRINT_TEST_ZONE)) {
         $this->printBlock($zoneFile, 'ALIGNED TEST ZONE');
     }
     $this->assertEquals($this->expected, $zoneFile);
 }