mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
General optimation of tests and namespaces
This commit is contained in:
31
application/tests/Unit/Entity/Source/NameSourceTest.php
Normal file
31
application/tests/Unit/Entity/Source/NameSourceTest.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace tests\unit\Entity\Source;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use App\Entity\Source\NameSourceInterface;
|
||||
use App\Entity\Source\NameSource;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
class NameSourceTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var NameSourceInterface
|
||||
*/
|
||||
protected $nameSource;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->nameSource = new NameSource();
|
||||
}
|
||||
|
||||
public function testName(): void
|
||||
{
|
||||
$this->assertEquals('', $this->nameSource->getName());
|
||||
$name = 'Hello World!';
|
||||
$this->nameSource->setName($name);
|
||||
$this->assertEquals($name, $this->nameSource->getName());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user