mirror of
https://github.com/retailcrm/transparent-email.git
synced 2024-11-21 21:06:04 +03:00
CamelCase in domains
This commit is contained in:
parent
b22c960871
commit
7fcdddba4f
@ -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
|
||||
|
@ -5,7 +5,7 @@ namespace bkrukowski\Gordianus\Services;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class GmailCOM implements ServiceInterface
|
||||
class GmailCom implements ServiceInterface
|
||||
{
|
||||
public function getPrimaryEmail(string $email) : string
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ namespace bkrukowski\Gordianus\Services;
|
||||
* @codeCoverageIgnore
|
||||
* @internal
|
||||
*/
|
||||
class TlenPL extends MultiDomain
|
||||
class TlenPl extends MultiDomain
|
||||
{
|
||||
protected function getDomainList() : array
|
||||
{
|
||||
|
@ -5,7 +5,7 @@ namespace bkrukowski\Gordianus\Services;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class WWW33MailCOM implements ServiceInterface
|
||||
class Www33MailCom implements ServiceInterface
|
||||
{
|
||||
public function getPrimaryEmail(string $email) : string
|
||||
{
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user