mail_server/postfixadmin/tests/CheckDomainTest.php

16 lines
467 B
PHP
Raw Normal View History

2021-05-05 14:39:14 +00:00
<?php
/**
* Obviously replies on working DNS service
*/
class CheckDomainTest extends \PHPUnit\Framework\TestCase {
public function testBasic() {
$this->assertEquals('', check_domain('example.com'));
$this->assertEquals('', check_domain('google.com'));
$this->assertRegExp('/ not discoverable in DNS/', check_domain('fishbeansblahblahblah' . uniqid() . '.com'));
}
}
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */