PhpSpreadsheet/tests/PhpSpreadsheetTests/Shared/PasswordHasherTest.php

26 lines
598 B
PHP
Raw Normal View History

<?php
namespace PhpOffice\PhpSpreadsheetTests\Shared;
use PhpOffice\PhpSpreadsheet\Shared\PasswordHasher;
2016-03-22 14:35:50 +00:00
class PasswordHasherTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider providerHashPassword
* @group fail19
*
* @param mixed $expectedResult
*/
public function testHashPassword($expectedResult, ...$args)
2015-05-17 13:00:02 +00:00
{
$result = PasswordHasher::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
}
}