ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 13 of file PasswordTest.php.

Member Function Documentation

◆ setUp()

PasswordTest::setUp ( )
protected

Definition at line 15 of file PasswordTest.php.

16  {
17  $this->f = new Data\Factory();
18  }

◆ testValue()

PasswordTest::testValue ( )

Definition at line 20 of file PasswordTest.php.

References $pass.

21  {
22  $pass = 'secret';
23  $pwd = $this->f->password($pass);
24  $this->assertEquals($pass, $pwd->toString());
25  }

◆ testWrongParam()

PasswordTest::testWrongParam ( )

Definition at line 27 of file PasswordTest.php.

28  {
29  try {
30  $pwd = $this->f->password(123);
31  $this->assertFalse("This should not happen");
32  } catch (\InvalidArgumentException $e) {
33  $this->assertTrue(true);
34  }
35  }

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