ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 17 of file PasswordTest.php.

Member Function Documentation

◆ setUp()

PasswordTest::setUp ( )
protected

Definition at line 21 of file PasswordTest.php.

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

◆ testValue()

PasswordTest::testValue ( )

Definition at line 26 of file PasswordTest.php.

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

◆ testWrongParam()

PasswordTest::testWrongParam ( )

Definition at line 33 of file PasswordTest.php.

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

Field Documentation

◆ $f

Data Factory PasswordTest::$f
protected

Definition at line 19 of file PasswordTest.php.


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