mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 02:02:29 +01:00 
			
		
		
		
	Further slow progress.
This commit is contained in:
		
							
								
								
									
										27
									
								
								tests/GuardTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								tests/GuardTest.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace DNW\Skills\Tests;
 | 
			
		||||
 | 
			
		||||
use DNW\Skills\Guard;
 | 
			
		||||
use Exception;
 | 
			
		||||
class GuardTest extends TestCase
 | 
			
		||||
{
 | 
			
		||||
    public function testArgumentNotNull(): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->expectException(Exception::class);
 | 
			
		||||
        Guard::argumentNotNull(null, "dummy");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function testargumentIsValidIndex(): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->expectException(Exception::class);
 | 
			
		||||
        Guard::argumentIsValidIndex(25, 10, "dummy");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    public function testargumentInRangeInclusive(): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->expectException(Exception::class);
 | 
			
		||||
        Guard::argumentInRangeInclusive(101, 0, 100, "dummy");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user