infinito/application/symfony/tests/Unit/Entity/Source/PureSourceTest.php

40 lines
919 B
PHP
Raw Permalink Normal View History

2019-01-04 21:28:21 +01:00
<?php
namespace Tests\Unit\Entity\Source;
2020-04-02 21:13:35 +02:00
use Infinito\Entity\Source\AbstractSource;
use Infinito\Entity\Source\PureSource;
use Infinito\Entity\Source\PureSourceInterface;
use Infinito\Entity\Source\SourceInterface;
2019-01-04 21:28:21 +01:00
use PHPUnit\Framework\TestCase;
/**
* @author kevinfrantz
*/
2019-01-04 21:28:21 +01:00
class PureSourceTest extends TestCase
{
/**
* @var PureSourceInterface
*/
private $pureSource;
/**
* @var SourceInterface
*/
private $abstractSource;
public function setUp(): void
{
$this->pureSource = new PureSource();
$this->abstractSource = new class() extends AbstractSource {
};
}
public function testMethodSet(): void
{
$pureSourceMethods = get_class_methods($this->pureSource);
$abstractSourceMethods = get_class_methods($this->abstractSource);
$this->assertArraySubset($pureSourceMethods, $abstractSourceMethods);
}
}