PhpSpreadsheet/tests/PhpSpreadsheetTests/Shared/PasswordHasherTest.php

26 lines
617 B
PHP
Raw Normal View History

<?php
namespace PhpSpreadsheetTests\Shared;
use PhpSpreadsheet\Shared\PasswordHasher;
2016-03-22 14:35:50 +00:00
class PasswordHasherTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider providerHashPassword
* @group fail19
*/
2015-05-17 13:00:02 +00:00
public function testHashPassword()
{
$args = func_get_args();
$expectedResult = array_pop($args);
$result = call_user_func_array([PasswordHasher::class, 'hashPassword'], $args);
2015-05-17 13:00:02 +00:00
$this->assertEquals($expectedResult, $result);
}
public function providerHashPassword()
{
return require 'data/Shared/PasswordHashes.php';
2015-05-17 13:00:02 +00:00
}
}