1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-11-26 11:23:04 +03:00
Files
postfixadmin/tests/CheckEmailTest.php
2021-03-22 09:28:28 +00:00

15 lines
416 B
PHP

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