◆ clientIdProvider()
ClientIdTest::clientIdProvider |
( |
| ) |
|
- Returns
- array[]
Definition at line 28 of file ClientIdTest.php.
31 'single letter' => [
'c'],
32 'multiple letters' => [
'client'],
33 'single uppercase letter' => [
'C'],
34 'multiple uppercase letters' => [
'CLIENT'],
35 'single digit' => [
'1'],
36 'multiple digits' => [
'12'],
37 'letters + underscores' => [
'client_with_underscore'],
38 'letters + underscores + digits' => [
'client_with_12345'],
39 'letters + hyphens' => [
'client-with-hyphen'],
40 'dots + sharps' => [
'.#']
◆ invalidClientIdProvider()
ClientIdTest::invalidClientIdProvider |
( |
| ) |
|
- Returns
- array[]
Definition at line 47 of file ClientIdTest.php.
50 'path traversal' => [
'../../some/obscure/path'],
51 'space in between' => [
'my client'],
52 'wrapped in spaces' => [
' myclient '],
53 'umlaut' => [
'clüent'],
◆ setUp()
◆ testClientIdCannotBeCreatedByAnEmptyString()
ClientIdTest::testClientIdCannotBeCreatedByAnEmptyString |
( |
| ) |
|
Definition at line 81 of file ClientIdTest.php.
83 $this->expectException(InvalidArgumentException::class);
85 $this->f->clientId(
'');
◆ testInvalidArguments()
ClientIdTest::testInvalidArguments |
( |
string |
$value | ) |
|
- Parameters
-
string | $value | invalidClientIdProvider |
Definition at line 71 of file ClientIdTest.php.
References Vendor\Package\$e.
74 $clientId = $this->f->clientId($value);
75 $this->fail(
'This should not happen');
77 $this->assertTrue(
true);
◆ testValidArguments()
ClientIdTest::testValidArguments |
( |
string |
$value | ) |
|
- Parameters
-
string | $value | clientIdProvider |
Definition at line 61 of file ClientIdTest.php.
63 $clientId = $this->f->clientId($value);
64 $this->assertEquals($value, $clientId->toString());
◆ $f
The documentation for this class was generated from the following file: