Skip to content

Commit

Permalink
Fix testing class name and namespaces (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Feb 7, 2021
1 parent de0fb24 commit 04cad1a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/EmailValidator/EmailLexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Egulias\EmailValidator\EmailLexer;
use PHPUnit\Framework\TestCase;

class EmailLexerTests extends TestCase
class EmailLexerTest extends TestCase
{

public function testLexerExtendsLib()
Expand Down
4 changes: 2 additions & 2 deletions tests/EmailValidator/EmailParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Egulias\EmailValidator\EmailParser;
use PHPUnit\Framework\TestCase;

class EmailParserTests extends TestCase
class EmailParserTest extends TestCase
{
public function emailPartsProvider()
{
Expand All @@ -28,4 +28,4 @@ public function testGetParts($email, $local, $domain)
$this->assertEquals($local, $parser->getLocalPart());
$this->assertEquals($domain, $parser->getDomainPart());
}
}
}
6 changes: 4 additions & 2 deletions tests/EmailValidator/LexerTokensTest.php
Original file line number Diff line number Diff line change
@@ -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");
}
}
}
4 changes: 2 additions & 2 deletions tests/EmailValidator/Reason/MultipleErrorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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()
{
Expand Down Expand Up @@ -35,4 +35,4 @@ public function testRegisterDifferentReasons()
$this->assertEquals($expectedReason, $multiError->description());
$this->assertEquals($error1, $multiError->reason());
}
}
}
4 changes: 2 additions & 2 deletions tests/EmailValidator/Result/ResultTest.php
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -32,4 +32,4 @@ public function testResultIsInvalidEmail()
$this->assertEquals($expectedCode, $result->code());
$this->assertEquals($expectedDescription, $result->description());
}
}
}
2 changes: 1 addition & 1 deletion tests/EmailValidator/Validation/DNSCheckValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ public function testNoDNSError()
$validation->isValid("example@invalid.example.com", new EmailLexer());
$this->assertEquals($expectedError, $validation->getError());
}
}
}

0 comments on commit 04cad1a

Please sign in to comment.