2018-11-23 21:30:25 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests\Unit\Entity\Source\Primitive\Text;
|
|
|
|
|
2019-02-17 14:33:19 +01:00
|
|
|
use Infinito\Entity\Source\Primitive\Text\TextSource;
|
2020-04-02 21:13:35 +02:00
|
|
|
use Infinito\Entity\Source\Primitive\Text\TextSourceInterface;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
2018-11-23 21:30:25 +01:00
|
|
|
|
|
|
|
class TextSourceTest extends TestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var TextSourceInterface
|
|
|
|
*/
|
|
|
|
protected $textSource;
|
|
|
|
|
|
|
|
public function setUp(): void
|
|
|
|
{
|
|
|
|
$this->textSource = new TextSource();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testConstructor(): void
|
|
|
|
{
|
|
|
|
$this->expectException(\TypeError::class);
|
|
|
|
$this->textSource->getText();
|
|
|
|
}
|
|
|
|
}
|