ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
PasswordHasherTest.php
Go to the documentation of this file.
1
<?php
2
3
4
require_once
'testDataFileIterator.php'
;
5
6
class
PasswordHasherTest
extends
PHPUnit_Framework_TestCase
7
{
8
9
public
function
setUp
()
10
{
11
if
(!
defined
(
'PHPEXCEL_ROOT'
)) {
12
define(
'PHPEXCEL_ROOT'
, APPLICATION_PATH .
'/'
);
13
}
14
require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php'
);
15
}
16
20
public
function
testHashPassword
()
21
{
22
$args = func_get_args();
23
$expectedResult = array_pop($args);
24
$result
= call_user_func_array(
array
(
'PHPExcel_Shared_PasswordHasher'
,
'hashPassword'
),$args);
25
$this->assertEquals($expectedResult,
$result
);
26
}
27
28
public
function
providerHashPassword
()
29
{
30
return
new
testDataFileIterator
(
'rawTestData/Shared/PasswordHashes.data'
);
31
}
32
33
}
PasswordHasherTest\providerHashPassword
providerHashPassword()
Definition:
PasswordHasherTest.php:28
$result
$result
Definition:
CleanUpTest.php:463
PasswordHasherTest\setUp
setUp()
Definition:
PasswordHasherTest.php:9
testDataFileIterator
Definition:
testDataFileIterator.php:3
PHPUnit_Framework_TestCase
PasswordHasherTest
Definition:
PasswordHasherTest.php:6
PasswordHasherTest\testHashPassword
testHashPassword()
providerHashPassword
Definition:
PasswordHasherTest.php:20
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
defined
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition:
bootstrap.php:27
libs
composer
vendor
phpoffice
phpexcel
unitTests
Classes
PHPExcel
Shared
PasswordHasherTest.php
Generated on Sat Jan 18 2025 19:01:08 for ILIAS by
1.8.13 (using
Doxyfile
)