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.

13 lines
416 B

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