ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
APR1_MD5_SaltTest.php
Go to the documentation of this file.
1
<?php
2
3
use
WhiteHat101\Crypt\APR1_MD5
;
4
5
class
APR1_MD5_SaltTest
extends
PHPUnit_Framework_TestCase
{
6
7
public
function
testSaltType
() {
8
$this->assertInternalType(
'string'
, APR1_MD5::salt());
9
}
10
11
public
function
testSaltPattern
() {
12
$this->assertRegExp(
'/.{8}/'
, APR1_MD5::salt());
13
}
14
15
public
function
testSaltRamdomness
() {
16
$this->assertNotEquals(APR1_MD5::salt(), APR1_MD5::salt());
17
}
18
19
}
APR1_MD5_SaltTest\testSaltPattern
testSaltPattern()
Definition:
APR1_MD5_SaltTest.php:11
PHPUnit_Framework_TestCase
APR1_MD5_SaltTest
Definition:
APR1_MD5_SaltTest.php:5
APR1_MD5_SaltTest\testSaltRamdomness
testSaltRamdomness()
Definition:
APR1_MD5_SaltTest.php:15
APR1_MD5_SaltTest\testSaltType
testSaltType()
Definition:
APR1_MD5_SaltTest.php:7
APR1_MD5
libs
composer
vendor
whitehat101
apr1-md5
tests
APR1_MD5_SaltTest.php
Generated on Sat Jan 18 2025 19:01:13 for ILIAS by
1.8.13 (using
Doxyfile
)