deleteDomain() public method

Delete a Domain with the given ID.
public deleteDomain ( integer $id ) : Postmark\Models\DynamicResponseModel
$id integer The ID for the Domain we wish to delete.
return Postmark\Models\DynamicResponseModel
 function testClientCanDeleteDomain()
 {
     $tk = parent::$testKeys;
     $client = new PostmarkAdminClient($tk->WRITE_ACCOUNT_TOKEN, $tk->TEST_TIMEOUT);
     $domainName = $tk->WRITE_TEST_DOMAIN_NAME;
     $name = 'test-php-delete-' . $domainName;
     $domain = $client->createDomain($name);
     $client->deleteDomain($domain->id);
     $domains = $client->listDomains()->domains;
     foreach ($domains as $key => $value) {
         $this->assertNotSame($domain->name, $value->name);
     }
 }