ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ILIAS\Component\Tests\Dependencies\NameTest Class Reference
+ Inheritance diagram for ILIAS\Component\Tests\Dependencies\NameTest:
+ Collaboration diagram for ILIAS\Component\Tests\Dependencies\NameTest:

Public Member Functions

 testProperNames (string $name)
 
 testImproperNames (string $name)
 

Static Public Member Functions

static properNames ()
 
static improperNames ()
 

Detailed Description

Definition at line 26 of file NameTest.php.

Member Function Documentation

◆ improperNames()

static ILIAS\Component\Tests\Dependencies\NameTest::improperNames ( )
static

Definition at line 50 of file NameTest.php.

50  : array
51  {
52  return [
53  ['ILIAS \Component\Tests'],
54  [\ILIAS\Component::class]
55  ];
56  }

◆ properNames()

static ILIAS\Component\Tests\Dependencies\NameTest::properNames ( )
static

Definition at line 42 of file NameTest.php.

42  : array
43  {
44  return [
45  [\ILIAS\Component\Tests::class],
46  [\Foo\Bar\Baz::class]
47  ];
48  }

◆ testImproperNames()

ILIAS\Component\Tests\Dependencies\NameTest::testImproperNames ( string  $name)

Definition at line 36 of file NameTest.php.

36  : void
37  {
38  $this->expectException(\InvalidArgumentException::class);
39  $n = new Name($name);
40  }

◆ testProperNames()

ILIAS\Component\Tests\Dependencies\NameTest::testProperNames ( string  $name)

Definition at line 29 of file NameTest.php.

29  : void
30  {
31  $n = new Name($name);
32  $this->assertEquals($name, (string) $n);
33  }

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