ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
APR1_MD5_SaltTest.php
Go to the documentation of this file.
1<?php
2
4
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}
An exception for terminatinating execution or to throw for unit testing.