From 7fcdddba4ff4120c65d499644fc546125cfb8db1 Mon Sep 17 00:00:00 2001 From: bkrukowski Date: Sat, 10 Sep 2016 10:50:57 +0200 Subject: [PATCH] CamelCase in domains --- src/Gordianus.php | 12 ++++++------ src/Services/GmailCOM.php | 2 +- src/Services/TlenPL.php | 2 +- src/Services/WWW33MailCOM.php | 2 +- tests/Services/GmailCOMTest.php | 8 ++++---- tests/Services/WWW33MailCOMTest.php | 8 ++++---- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Gordianus.php b/src/Gordianus.php index 5d6807b..3cf2e7a 100644 --- a/src/Gordianus.php +++ b/src/Gordianus.php @@ -2,16 +2,16 @@ namespace bkrukowski\Gordianus; -use bkrukowski\Gordianus\Services\GmailCOM; +use bkrukowski\Gordianus\Services\GmailCom; use bkrukowski\Gordianus\Services\ServiceInterface; -use bkrukowski\Gordianus\Services\TlenPL; -use bkrukowski\Gordianus\Services\WWW33MailCOM; +use bkrukowski\Gordianus\Services\TlenPl; +use bkrukowski\Gordianus\Services\Www33MailCom; class Gordianus { - const SERVICE_GMAIL_COM = GmailCOM::class; - const SERVICE_TLEN_PL = TlenPL::class; - const SERVICE_WWW_33MAIL_COM = WWW33MailCOM::class; + const SERVICE_GMAIL_COM = GmailCom::class; + const SERVICE_TLEN_PL = TlenPl::class; + const SERVICE_WWW_33MAIL_COM = Www33MailCom::class; /** * Constant ALL_SERVICES can contain different values depends on API version diff --git a/src/Services/GmailCOM.php b/src/Services/GmailCOM.php index a933ea1..4855de8 100644 --- a/src/Services/GmailCOM.php +++ b/src/Services/GmailCOM.php @@ -5,7 +5,7 @@ namespace bkrukowski\Gordianus\Services; /** * @internal */ -class GmailCOM implements ServiceInterface +class GmailCom implements ServiceInterface { public function getPrimaryEmail(string $email) : string { diff --git a/src/Services/TlenPL.php b/src/Services/TlenPL.php index 3b31120..467ee73 100644 --- a/src/Services/TlenPL.php +++ b/src/Services/TlenPL.php @@ -6,7 +6,7 @@ namespace bkrukowski\Gordianus\Services; * @codeCoverageIgnore * @internal */ -class TlenPL extends MultiDomain +class TlenPl extends MultiDomain { protected function getDomainList() : array { diff --git a/src/Services/WWW33MailCOM.php b/src/Services/WWW33MailCOM.php index fa40b72..b64d263 100644 --- a/src/Services/WWW33MailCOM.php +++ b/src/Services/WWW33MailCOM.php @@ -5,7 +5,7 @@ namespace bkrukowski\Gordianus\Services; /** * @internal */ -class WWW33MailCOM implements ServiceInterface +class Www33MailCom implements ServiceInterface { public function getPrimaryEmail(string $email) : string { diff --git a/tests/Services/GmailCOMTest.php b/tests/Services/GmailCOMTest.php index 36ea4bf..2771071 100644 --- a/tests/Services/GmailCOMTest.php +++ b/tests/Services/GmailCOMTest.php @@ -2,9 +2,9 @@ namespace bkrukowski\Gordianus\Tests\Services; -use bkrukowski\Gordianus\Services\GmailCOM; +use bkrukowski\Gordianus\Services\GmailCom; -class GmailCOMTest extends \PHPUnit_Framework_TestCase +class GmailComTest extends \PHPUnit_Framework_TestCase { /** * @dataProvider providerGetPrimaryEmail @@ -14,7 +14,7 @@ class GmailCOMTest extends \PHPUnit_Framework_TestCase */ public function testGetPrimaryEmail(string $inputEmail, string $outputEmail) { - $this->assertSame($outputEmail, (new GmailCOM())->getPrimaryEmail($inputEmail)); + $this->assertSame($outputEmail, (new GmailCom())->getPrimaryEmail($inputEmail)); } public function providerGetPrimaryEmail() @@ -35,7 +35,7 @@ class GmailCOMTest extends \PHPUnit_Framework_TestCase */ public function testIsDomainSupported(string $domain, bool $result) { - $this->assertSame($result, (new GmailCOM())->isDomainSupported($domain)); + $this->assertSame($result, (new GmailCom())->isDomainSupported($domain)); } public function providerIsDomainSupported() diff --git a/tests/Services/WWW33MailCOMTest.php b/tests/Services/WWW33MailCOMTest.php index cbda8ab..dc55ac1 100644 --- a/tests/Services/WWW33MailCOMTest.php +++ b/tests/Services/WWW33MailCOMTest.php @@ -2,9 +2,9 @@ namespace bkrukowski\Gordianus\Tests\Services; -use bkrukowski\Gordianus\Services\WWW33MailCOM; +use bkrukowski\Gordianus\Services\Www33MailCom; -class WWW33MailCOMTest extends \PHPUnit_Framework_TestCase +class Www33MailComTest extends \PHPUnit_Framework_TestCase { /** * @dataProvider providerIsDomainSupported @@ -14,7 +14,7 @@ class WWW33MailCOMTest extends \PHPUnit_Framework_TestCase */ public function testIsDomainSupported(string $domain, bool $isSupported) { - $this->assertSame($isSupported, (new WWW33MailCOM())->isDomainSupported($domain)); + $this->assertSame($isSupported, (new Www33MailCom())->isDomainSupported($domain)); } public function providerIsDomainSupported() @@ -36,7 +36,7 @@ class WWW33MailCOMTest extends \PHPUnit_Framework_TestCase */ public function testGetPrimaryEmail(string $inputEmail, string $expectedEmail) { - $this->assertSame($expectedEmail, (new WWW33MailCOM())->getPrimaryEmail($inputEmail)); + $this->assertSame($expectedEmail, (new Www33MailCom())->getPrimaryEmail($inputEmail)); } public function providerGetPrimaryEmail()