ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 

Protected Attributes

Data Factory $f
 

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 31 of file PasswordTest.php.

Member Function Documentation

◆ setUp()

PasswordTest::setUp ( )
protected

Definition at line 35 of file PasswordTest.php.

35  : void
36  {
37  $this->f = new Data\Factory();
38  }

◆ testValue()

PasswordTest::testValue ( )

Definition at line 40 of file PasswordTest.php.

40  : void
41  {
42  $pass = 'secret';
43  $pwd = $this->f->password($pass);
44  $this->assertEquals($pass, $pwd->toString());
45  }

◆ testWrongParam()

PasswordTest::testWrongParam ( )

Definition at line 47 of file PasswordTest.php.

47  : void
48  {
49  $this->expectException(TypeError::class);
50  $pwd = $this->f->password(123);
51  }

Field Documentation

◆ $f

Data Factory PasswordTest::$f
protected

Definition at line 33 of file PasswordTest.php.


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