ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 properNames More...
 
 testImproperNames (string $name)
 improperNames More...
 

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 54 of file NameTest.php.

54  : array
55  {
56  return [
57  ['ILIAS \Component\Tests'],
58  [\ILIAS\Component::class]
59  ];
60  }

◆ properNames()

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

Definition at line 46 of file NameTest.php.

46  : array
47  {
48  return [
49  [\ILIAS\Component\Tests::class],
50  [\Foo\Bar\Baz::class]
51  ];
52  }

◆ testImproperNames()

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

improperNames

Definition at line 40 of file NameTest.php.

40  : void
41  {
42  $this->expectException(\InvalidArgumentException::class);
43  $n = new Name($name);
44  }

◆ testProperNames()

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

properNames

Definition at line 31 of file NameTest.php.

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

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