mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-03 18:58:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			896 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			896 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Tests\Unit\Attribut;
 | 
						|
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
use Infinito\Attribut\PriorityAttributInterface;
 | 
						|
use Infinito\Attribut\PriorityAttribut;
 | 
						|
 | 
						|
/**
 | 
						|
 * @author kevinfrantz
 | 
						|
 */
 | 
						|
class PriorityAttributTest extends TestCase
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @var PriorityAttributInterface
 | 
						|
     */
 | 
						|
    protected $priorityAttribut;
 | 
						|
 | 
						|
    public function setUp(): void
 | 
						|
    {
 | 
						|
        $this->priorityAttribut = new class() implements PriorityAttributInterface {
 | 
						|
            use PriorityAttribut;
 | 
						|
        };
 | 
						|
    }
 | 
						|
 | 
						|
    public function testConstructor(): void
 | 
						|
    {
 | 
						|
        $this->expectException(\TypeError::class);
 | 
						|
        $this->priorityAttribut->getPriority();
 | 
						|
    }
 | 
						|
 | 
						|
    public function testAccessors(): void
 | 
						|
    {
 | 
						|
        $priority = 123;
 | 
						|
        $this->assertNull($this->priorityAttribut->setPriority($priority));
 | 
						|
        $this->assertEquals($priority, $this->priorityAttribut->getPriority());
 | 
						|
    }
 | 
						|
}
 |