mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 03:07:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			620 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			620 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Tests\Unit\Entity\Meta;
 | 
						|
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
use App\Entity\Meta\Reciever;
 | 
						|
use App\Entity\Meta\RecieverInterface;
 | 
						|
use Doctrine\Common\Collections\Collection;
 | 
						|
 | 
						|
class RecieverTest extends TestCase
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @var RecieverInterface
 | 
						|
     */
 | 
						|
    public $reciever;
 | 
						|
 | 
						|
    public function setUp(): void
 | 
						|
    {
 | 
						|
        $this->reciever = new Reciever();
 | 
						|
    }
 | 
						|
 | 
						|
    public function testConstructor(): void
 | 
						|
    {
 | 
						|
        $this->assertInstanceOf(Collection::class, $this->reciever->getCollection());
 | 
						|
        $this->expectException(\TypeError::class);
 | 
						|
        $this->reciever->getRight();
 | 
						|
    }
 | 
						|
}
 |