 8dddf56c2e
			
		
	
	
		8dddf56c2e
		
			
		
	
	
	
	
		
			
			This simplify code, increase readability and improve the function signature for API users.
		
			
				
	
	
		
			26 lines
		
	
	
		
			598 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			598 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests\Shared;
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Shared\PasswordHasher;
 | |
| 
 | |
| class PasswordHasherTest extends \PHPUnit_Framework_TestCase
 | |
| {
 | |
|     /**
 | |
|      * @dataProvider providerHashPassword
 | |
|      * @group fail19
 | |
|      *
 | |
|      * @param mixed $expectedResult
 | |
|      */
 | |
|     public function testHashPassword($expectedResult, ...$args)
 | |
|     {
 | |
|         $result = PasswordHasher::hashPassword(...$args);
 | |
|         $this->assertEquals($expectedResult, $result);
 | |
|     }
 | |
| 
 | |
|     public function providerHashPassword()
 | |
|     {
 | |
|         return require 'data/Shared/PasswordHashes.php';
 | |
|     }
 | |
| }
 |