Use the `PHPUnit\Framework\TestCase` notation instead of `PHPUnit_Framework_TestCase` while extending our TestCases. This will help us migrate to PHPUnit 6, that [no longer support snake case class names](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-6.0.md#changed-1).
		
			
				
	
	
		
			26 lines
		
	
	
		
			589 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			589 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace PhpOffice\PhpSpreadsheetTests\Shared;
 | 
						|
 | 
						|
use PhpOffice\PhpSpreadsheet\Shared\PasswordHasher;
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
 | 
						|
class PasswordHasherTest extends TestCase
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @dataProvider providerHashPassword
 | 
						|
     *
 | 
						|
     * @param mixed $expectedResult
 | 
						|
     */
 | 
						|
    public function testHashPassword($expectedResult, ...$args)
 | 
						|
    {
 | 
						|
        $result = PasswordHasher::hashPassword(...$args);
 | 
						|
        self::assertEquals($expectedResult, $result);
 | 
						|
    }
 | 
						|
 | 
						|
    public function providerHashPassword()
 | 
						|
    {
 | 
						|
        return require 'data/Shared/PasswordHashes.php';
 | 
						|
    }
 | 
						|
}
 |