CamelCase in domains

This commit is contained in:
bkrukowski 2016-09-10 10:50:57 +02:00
parent b22c960871
commit 7fcdddba4f
6 changed files with 17 additions and 17 deletions

View File

@ -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

View File

@ -5,7 +5,7 @@ namespace bkrukowski\Gordianus\Services;
/**
* @internal
*/
class GmailCOM implements ServiceInterface
class GmailCom implements ServiceInterface
{
public function getPrimaryEmail(string $email) : string
{

View File

@ -6,7 +6,7 @@ namespace bkrukowski\Gordianus\Services;
* @codeCoverageIgnore
* @internal
*/
class TlenPL extends MultiDomain
class TlenPl extends MultiDomain
{
protected function getDomainList() : array
{

View File

@ -5,7 +5,7 @@ namespace bkrukowski\Gordianus\Services;
/**
* @internal
*/
class WWW33MailCOM implements ServiceInterface
class Www33MailCom implements ServiceInterface
{
public function getPrimaryEmail(string $email) : string
{

View File

@ -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()

View File

@ -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()