ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PasswordHasherTest Class Reference
+ Inheritance diagram for PasswordHasherTest:
+ Collaboration diagram for PasswordHasherTest:

Public Member Functions

 setUp ()
 
 testHashPassword ()
 @dataProvider providerHashPassword More...
 
 providerHashPassword ()
 

Detailed Description

Definition at line 6 of file PasswordHasherTest.php.

Member Function Documentation

◆ providerHashPassword()

PasswordHasherTest::providerHashPassword ( )

Definition at line 28 of file PasswordHasherTest.php.

29 {
30 return new testDataFileIterator('rawTestData/Shared/PasswordHashes.data');
31 }

◆ setUp()

PasswordHasherTest::setUp ( )

Definition at line 9 of file PasswordHasherTest.php.

10 {
11 if (!defined('PHPEXCEL_ROOT')) {
12 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
13 }
14 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
15 }
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

References defined.

◆ testHashPassword()

PasswordHasherTest::testHashPassword ( )

@dataProvider providerHashPassword

Definition at line 20 of file PasswordHasherTest.php.

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 }
$result

References $result.


The documentation for this class was generated from the following file: