ILIAS  release_8 Revision v8.24
PasswordTest Class Reference

Tests working with color data object. More...

+ Inheritance diagram for PasswordTest:
+ Collaboration diagram for PasswordTest:

Public Member Functions

 testValue ()
 
 testWrongParam ()
 

Protected Member Functions

 setUp ()
 

Detailed Description

Tests working with color data object.

Author
Nils Haagen nils..nosp@m.haag.nosp@m.en@co.nosp@m.ncep.nosp@m.ts-an.nosp@m.d-tr.nosp@m.ainin.nosp@m.g.de

Definition at line 17 of file PasswordTest.php.

Member Function Documentation

◆ setUp()

PasswordTest::setUp ( )
protected

Definition at line 19 of file PasswordTest.php.

19 : void
20 {
21 $this->f = new Data\Factory();
22 }

◆ testValue()

PasswordTest::testValue ( )

Definition at line 24 of file PasswordTest.php.

24 : void
25 {
26 $pass = 'secret';
27 $pwd = $this->f->password($pass);
28 $this->assertEquals($pass, $pwd->toString());
29 }

◆ testWrongParam()

PasswordTest::testWrongParam ( )

Definition at line 31 of file PasswordTest.php.

31 : void
32 {
33 $this->expectException(TypeError::class);
34 $pwd = $this->f->password(123);
35 }

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