ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PasswordHasherTest.php
Go to the documentation of this file.
1<?php
2
3
4require_once 'testDataFileIterator.php';
5
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}
$result
An exception for terminatinating execution or to throw for unit testing.
testHashPassword()
@dataProvider providerHashPassword
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27