mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-30 12:07:59 +00:00
Fix testing class name and namespaces (#284)
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Egulias\EmailValidator\Tests\EmailValidator;
|
||||
use Egulias\EmailValidator\EmailLexer;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class EmailLexerTests extends TestCase
|
||||
class EmailLexerTest extends TestCase
|
||||
{
|
||||
|
||||
public function testLexerExtendsLib()
|
||||
|
||||
@@ -6,7 +6,7 @@ use Egulias\EmailValidator\EmailLexer;
|
||||
use Egulias\EmailValidator\EmailParser;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class EmailParserTests extends TestCase
|
||||
class EmailParserTest extends TestCase
|
||||
{
|
||||
public function emailPartsProvider()
|
||||
{
|
||||
@@ -28,4 +28,4 @@ class EmailParserTests extends TestCase
|
||||
$this->assertEquals($local, $parser->getLocalPart());
|
||||
$this->assertEquals($domain, $parser->getDomainPart());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Egulias\EmailValidator\Tests\EmailValidator;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class LexerTokensTest extends TestCase
|
||||
{
|
||||
public function testToken()
|
||||
{
|
||||
$this->markTestIncomplete("implement beter lexer tokens");
|
||||
$this->markTestIncomplete("implement better lexer tokens");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ use Egulias\EmailValidator\Result\MultipleErrors;
|
||||
use Egulias\EmailValidator\Tests\EmailValidator\Dummy\AnotherDummyReason;
|
||||
use Egulias\EmailValidator\Tests\EmailValidator\Dummy\DummyReason;
|
||||
|
||||
class MultipleErrorsTests extends TestCase
|
||||
class MultipleErrorsTest extends TestCase
|
||||
{
|
||||
public function testRegisterSameReason()
|
||||
{
|
||||
@@ -35,4 +35,4 @@ class MultipleErrorsTests extends TestCase
|
||||
$this->assertEquals($expectedReason, $multiError->description());
|
||||
$this->assertEquals($error1, $multiError->reason());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Egulias\Tests\EmailValidator\Validation;
|
||||
namespace Egulias\EmailValidator\Tests\EmailValidator\Result;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Egulias\EmailValidator\Result\ValidEmail;
|
||||
@@ -32,4 +32,4 @@ class ResultTest extends TestCase
|
||||
$this->assertEquals($expectedCode, $result->code());
|
||||
$this->assertEquals($expectedDescription, $result->description());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,4 +106,4 @@ class DNSCheckValidationTest extends TestCase
|
||||
$validation->isValid("example@invalid.example.com", new EmailLexer());
|
||||
$this->assertEquals($expectedError, $validation->getError());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user