EmailValidatorTest.php
559 Bytes
<?php
use FootyRoom\Tests\TestCase;
use FootyRoom\Services\Registration\EmailValidator;
class PlayerRoundTest extends TestCase
{
/**
* @covers EmailValidator::isBounceRisk
*/
public function testUnsafeEmail()
{
$this->assertTrue(
EmailValidator::isBounceRisk('unsafe@interia.pl'),
'Email with bounce risk is not caught.'
);
}
/**
* @covers EmailValidator::isBounceRisk
*/
public function testSafeEmail()
{
$this->assertFalse(
EmailValidator::isBounceRisk('safe@gmail.com'),
'Email without bounce risk is caught.'
);
}
}