mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 09:19:08 +00:00 
			
		
		
		
	Implemented PureSource
This commit is contained in:
		
							
								
								
									
										36
									
								
								application/tests/Unit/Entity/Source/PureSourceTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								application/tests/Unit/Entity/Source/PureSourceTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| <?php | ||||
|  | ||||
| namespace Tests\Unit\Entity\Source; | ||||
|  | ||||
| use App\Entity\Source\PureSourceInterface; | ||||
| use App\Entity\Source\SourceInterface; | ||||
| use App\Entity\Source\PureSource; | ||||
| use App\Entity\Source\AbstractSource; | ||||
| use PHPUnit\Framework\TestCase; | ||||
|  | ||||
| class PureSourceTest extends TestCase | ||||
| { | ||||
|     /** | ||||
|      * @var PureSourceInterface | ||||
|      */ | ||||
|     private $pureSource; | ||||
|  | ||||
|     /** | ||||
|      * @var SourceInterface | ||||
|      */ | ||||
|     private $abstractSource; | ||||
|  | ||||
|     public function setUp(): void | ||||
|     { | ||||
|         $this->pureSource = new PureSource(); | ||||
|         $this->abstractSource = new class() extends AbstractSource { | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     public function testMethodSet(): void | ||||
|     { | ||||
|         $pureSourceMethods = get_class_methods($this->pureSource); | ||||
|         $abstractSourceMethods = get_class_methods($this->abstractSource); | ||||
|         $this->assertArraySubset($pureSourceMethods, $abstractSourceMethods); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user