Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianluca Arbezzano committed Nov 28, 2014
1 parent 1c27cbb commit ccb76d2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/EmailAddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function testComplexLocalValid()
*/
public function testMXRecords()
{
if (!constant('TESTS_ZEND_VALIDATOR_ONLINE_ENABLED')) {
if (!defined('TESTS_ZEND_VALIDATOR_ONLINE_ENABLED')) {
$this->markTestSkipped('Testing MX records has been disabled');
}

Expand Down Expand Up @@ -342,7 +342,7 @@ public function testMXRecords()
*/
public function testNoMxRecordARecordFallback()
{
if (!constant('TESTS_ZEND_VALIDATOR_ONLINE_ENABLED')) {
if (!defined('TESTS_ZEND_VALIDATOR_ONLINE_ENABLED')) {
$this->markTestSkipped('Testing MX records has been disabled');
}

Expand Down Expand Up @@ -645,10 +645,11 @@ public function testNotSetHostnameValidator()
*/
public function testGetMXRecord()
{
if (!constant('TESTS_ZEND_VALIDATOR_ONLINE_ENABLED')) {
if (!defined('TESTS_ZEND_VALIDATOR_ONLINE_ENABLED')) {
$this->markTestSkipped('Testing MX records has been disabled');
}

$validator = new EmailAddress(array('useMxCheck' => true, 'allow' => Hostname::ALLOW_ALL));
$validator = new EmailAddress(array('useMxCheck' => true, 'allow' => Hostname::ALLOW_ALL));

if (!$validator->isMxSupported()) {
Expand Down Expand Up @@ -679,9 +680,10 @@ public function testEqualsMessageVariables()
*/
public function testUseMxCheckBasicValid()
{
if (!constant('TESTS_ZEND_VALIDATOR_ONLINE_ENABLED')) {
if (!defined('TESTS_ZEND_VALIDATOR_ONLINE_ENABLED')) {
$this->markTestSkipped('Testing MX records has been disabled');
}

$validator = new EmailAddress(array(
'useMxCheck' => true,
'useDeepMxCheck' => true
Expand Down

0 comments on commit ccb76d2

Please sign in to comment.