transparent-email/tests/Services/AppsGoogleComTest.php

29 lines
666 B
PHP
Raw Normal View History

2016-09-16 02:13:48 +03:00
<?php
2016-09-23 22:39:33 +03:00
declare(strict_types=1);
2016-09-16 02:13:48 +03:00
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],
];
}
}