sonarrradarrplexorganizrnginxdashboardhtpcserverhomepagesabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelanding
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							31 lines
						
					
					
						
							758 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							758 B
						
					
					
				| <?php declare(strict_types = 1); | |
| namespace TheSeer\Tokenizer; | |
| 
 | |
| use PHPUnit\Framework\TestCase; | |
| 
 | |
| class TokenTest extends TestCase { | |
| 
 | |
|     /** @var  Token */ | |
|     private $token; | |
| 
 | |
|     protected function setUp() { | |
|         $this->token = new Token(1,'test-dummy', 'blank'); | |
|     } | |
| 
 | |
|     public function testTokenCanBeCreated() { | |
|         $this->assertInstanceOf(Token::class, $this->token); | |
|     } | |
| 
 | |
|     public function testTokenLineCanBeRetrieved() { | |
|         $this->assertEquals(1, $this->token->getLine()); | |
|     } | |
| 
 | |
|     public function testTokenNameCanBeRetrieved() { | |
|         $this->assertEquals('test-dummy', $this->token->getName()); | |
|     } | |
| 
 | |
|     public function testTokenValueCanBeRetrieved() { | |
|         $this->assertEquals('blank', $this->token->getValue()); | |
|     } | |
| 
 | |
| }
 | |
| 
 |