ILIAS  release_7 Revision v7.30-3-g800a261c036
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 14 of file PasswordTest.php.

Member Function Documentation

◆ setUp()

PasswordTest::setUp ( )
protected

Definition at line 16 of file PasswordTest.php.

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

◆ testValue()

PasswordTest::testValue ( )

Definition at line 21 of file PasswordTest.php.

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

References $pass.

◆ testWrongParam()

PasswordTest::testWrongParam ( )

Definition at line 28 of file PasswordTest.php.

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

References Vendor\Package\$e.


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