function testCreateDomain()
 {
     //Setup
     $name = "test.com";
     $email = "*****@*****.**";
     $ns = "ns";
     $type = Domain::TYPE_DOMAIN;
     //Assert
     $client = $this->getMock(self::API_CLIENT);
     $client->expects($this->once())->method('executeApi')->with($this->equalTo('createregulardomain'), $this->equalTo(array('name' => $name, 'email' => $email, 'ns1' => 'ns1.' . $ns, 'ns2' => 'ns2.' . $ns)));
     //Do
     $api = new Rage4Api($client);
     $domain = new Domain($name, $type, $email, array(), $ns);
     $domain->create($api);
 }
 /**
  * @param string $name
  * @param int $type
  * @param string $email
  * @param int $id
  * @param array $records
  * @param int $subnet_mask
  * @param string|null $nsdomain
  */
 function __construct($name, $type, $email, $id, $records = array(), $subnet_mask = 0, $nsdomain = null)
 {
     $this->id = $id;
     $this->subnet_mask = $subnet_mask;
     parent::__construct($name, $type, $email, $records, $nsdomain);
 }