ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
◀ ilDoc Overview
PasswordTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
require_once(
"vendor/composer/vendor/autoload.php"
);
22
23
use
ILIAS\Data
;
24
use
PHPUnit\Framework\TestCase
;
25
31
class
PasswordTest
extends
TestCase
32
{
33
protected
Data\Factory
$f
;
34
35
protected
function
setUp
(): void
36
{
37
$this->f =
new
Data\Factory();
38
}
39
40
public
function
testValue
(): void
41
{
42
$pass =
'secret'
;
43
$pwd = $this->f->password($pass);
44
$this->assertEquals($pass, $pwd->toString());
45
}
46
47
public
function
testWrongParam
(): void
48
{
49
$this->expectException(TypeError::class);
50
$pwd = $this->f->password(123);
51
}
52
}
PasswordTest\testWrongParam
testWrongParam()
Definition:
PasswordTest.php:47
PasswordTest
Tests working with color data object.
Definition:
PasswordTest.php:31
PasswordTest\$f
Data Factory $f
Definition:
PasswordTest.php:33
PasswordTest\setUp
setUp()
Definition:
PasswordTest.php:35
PasswordTest\testValue
testValue()
Definition:
PasswordTest.php:40
TestCase
ILIAS\Data
Definition:
Alphanumeric.php:24
TestCase
components
ILIAS
Data
tests
PasswordTest.php
Generated on Tue Sep 2 2025 23:02:51 for ILIAS by
1.8.13 (using
Doxyfile
)