CheckEmailTest.php 416 B

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