0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/tests/CheckEmailTest.php
2021-04-13 21:19:16 +01:00

16 lines
420 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: */