CheckDomainTest.php 467 B

123456789101112131415
  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: */