mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Added Text source
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit\Entity\Source\Primitive\Text;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use App\Entity\Source\Primitive\Text\TextSourceInterface;
|
||||
use App\Entity\Source\Primitive\Text\TextSource;
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user