mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 03:07:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			950 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			950 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace tests\unit\Entity\Source\Complex;
 | 
						|
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
use App\Entity\Source\Complex\PersonIdentitySourceInterface;
 | 
						|
use App\Entity\Source\Complex\PersonIdentitySource;
 | 
						|
use App\Entity\Source\Complex\FullPersonNameSourceInterface;
 | 
						|
 | 
						|
class PersonIdentitySourceTest extends TestCase
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @var PersonIdentitySourceInterface
 | 
						|
     */
 | 
						|
    protected $identity;
 | 
						|
 | 
						|
    public function setUp(): void
 | 
						|
    {
 | 
						|
        $this->identity = new PersonIdentitySource();
 | 
						|
    }
 | 
						|
 | 
						|
    public function testConstructor(): void
 | 
						|
    {
 | 
						|
        $this->assertInstanceOf(FullPersonNameSourceInterface::class, $this->identity->getFullPersonNameSource());
 | 
						|
    }
 | 
						|
 | 
						|
    public function testFullName(): void
 | 
						|
    {
 | 
						|
        $name = $this->createMock(FullPersonNameSourceInterface::class);
 | 
						|
        $this->assertNull($this->identity->setFullPersonNameSource($name));
 | 
						|
        $this->assertEquals($name, $this->identity->getFullPersonNameSource());
 | 
						|
    }
 | 
						|
}
 |