transparent-email/tests/Services/AppsGoogleComTest.php

27 lines
640 B
PHP
Raw Normal View History

2016-09-16 02:13:48 +03:00
<?php
namespace bkrukowski\TransparentEmail\Tests\Services;
use bkrukowski\TransparentEmail\Services\AppsGoogleCom;
class AppsGoogleComTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider providerIsDomainSupported
*
* @param string $domain
* @param bool $result
*/
public function testIsDomainSupported(string $domain, bool $result)
{
$this->assertSame($result, (new AppsGoogleCom())->isDomainSupported($domain));
}
public function providerIsDomainSupported()
{
return [
['example.com', false],
['krukowski.me', true],
];
}
}