PostfixAdmin - web based virtual user administration interface for Postfix mail servers https://postfixadmin.github.io/postfixadmin/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
467 B

  1. <?php
  2. /**
  3. * Obviously replies on working DNS service
  4. */
  5. class CheckDomainTest extends \PHPUnit\Framework\TestCase {
  6. public function testBasic() {
  7. $this->assertEquals('', check_domain('example.com'));
  8. $this->assertEquals('', check_domain('google.com'));
  9. $this->assertRegExp('/ not discoverable in DNS/', check_domain('fishbeansblahblahblah' . uniqid() . '.com'));
  10. }
  11. }
  12. /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */