【文件属性】:
文件名称:PHP的邮箱验证库.zip
文件大小:12KB
文件格式:ZIP
更新时间:2022-07-31 04:19:01
类库下载-PHP的邮箱验证库
<?php
class HasMxTest extends PHPUnit_Framework_TestCase
{
/**
* Set up for tests in this file.
*
* @access private
*/
private function setupTest()
{
$this->validator = new \EmailValidator\Validator();
}
/**
* Test hasMx
*
* @cover \EmailValidator\Validator::hasMx
*/
public function testHasMx()
{
$this->setupTest();
// Not an email
$this->assertNull(
$this->validator->hasMx('example.com')
);
// No Records
$this->assertFalse(
$this->validator->hasMx('example@example.com')
);
// Records
$this->assertTrue(
$this->validator->hasMx('example@google.com')
);
$this->assertTrue(
$this->validator->hasMx('example@yahoo.com')
);
}
}这是一份PHP的邮箱验证库,需要的朋友可以下载使用
【文件预览】:
PHP的邮箱验证库
----composer.json(771B)
----.travis.yml(128B)
----phpunit.xml(965B)
----php中文网下载站.url(114B)
----composer.lock(2KB)
----tests()
--------IsValidTest.php(1KB)
--------IsExampleTest.php(1KB)
--------IsRoleTest.php(929B)
--------IsSendableTest.php(1KB)
--------IsDisposableTest.php(880B)
--------IsEmailTest.php(1KB)
--------HasMxTest.php(859B)
----LICENSE(1KB)
----src()
--------data()
--------Validator.php(6KB)
----php中文网免费下载站.txt(219B)
----.gitignore(7B)
----README.md(4KB)