0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
postfixadmin/tests/CheckEmailTest.php

16 lines
438 B
PHP
Raw Permalink Normal View History

<?php
/**
* Obviously relies on working DNS service etc.
*/
2021-03-22 10:28:28 +01:00
class CheckEmailTest extends \PHPUnit\Framework\TestCase
{
2021-04-13 22:19:16 +02:00
public function testBasic()
{
$this->assertEquals('', check_email('test@example.com'));
$this->assertMatchesRegularExpression('/ not discoverable in DNS/', check_email('test@fishbeansblahblahblah' . uniqid() . '.com'));
}
}
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */