mirror of
https://github.com/retailcrm/transparent-email.git
synced 2024-11-25 23:06:04 +03:00
21 lines
561 B
PHP
21 lines
561 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace bkrukowski\TransparentEmail\Tests;
|
||
|
|
||
|
use bkrukowski\TransparentEmail\DefaultServiceCollector;
|
||
|
use bkrukowski\TransparentEmail\Services\ServiceInterface;
|
||
|
|
||
|
class DefaultServiceCollectorTest extends \PHPUnit_Framework_TestCase
|
||
|
{
|
||
|
public function testIterator()
|
||
|
{
|
||
|
$atLeastOne = false;
|
||
|
foreach (new DefaultServiceCollector() as $service) {
|
||
|
$atLeastOne = true;
|
||
|
$this->assertInstanceOf(ServiceInterface::class, $service);
|
||
|
}
|
||
|
$this->assertTrue($atLeastOne);
|
||
|
}
|
||
|
}
|