TYPO3CMS
9.5
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
ExceptionExpectation.php
Go to the documentation of this file.
1
<?php
2
declare(strict_types = 1);
3
namespace
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder
;
4
5
/*
6
* This file is part of the TYPO3 CMS project.
7
*
8
* It is free software; you can redistribute it and/or modify it under
9
* the terms of the GNU General Public License, either version 2
10
* of the License, or any later version.
11
*
12
* For the full copyright and license information, please read the
13
* LICENSE.txt file that was distributed with this source code.
14
*
15
* The TYPO3 project - inspiring people to share!
16
*/
17
18
class
ExceptionExpectation
implements
Applicable
19
{
23
private
$identifier
;
24
28
private
$className
;
29
33
private
$code
;
34
38
private
$message
;
39
40
public
static
function
create
(
string
$identifier
): self
41
{
42
return
new
static
(
$identifier
);
43
}
44
45
private
function
__construct
(
string
$identifier
)
46
{
47
$this->identifier =
$identifier
;
48
}
49
50
public
function
withClassName
(
string
$className
): self
51
{
52
$target = clone $this;
53
$target->className =
$className
;
54
return
$target;
55
}
56
57
public
function
withCode
(
int
$code
): self
58
{
59
$target = clone $this;
60
$target->code =
$code
;
61
return
$target;
62
}
63
64
public
function
withMessage
(
string
$message
): self
65
{
66
$target = clone $this;
67
$target->message =
$message
;
68
return
$target;
69
}
70
74
public
function
getClassName
(): ?string
75
{
76
return
$this->className
;
77
}
78
82
public
function
getCode
(): ?int
83
{
84
return
$this->code
;
85
}
86
90
public
function
getMessage
(): ?string
91
{
92
return
$this->message
;
93
}
94
95
public
function
describe
(): string
96
{
97
return
sprintf(
'Exception %s'
, $this->identifier);
98
}
99
}
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\create
static create(string $identifier)
Definition:
ExceptionExpectation.php:36
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\withMessage
withMessage(string $message)
Definition:
ExceptionExpectation.php:60
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\$code
int null $code
Definition:
ExceptionExpectation.php:30
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\__construct
__construct(string $identifier)
Definition:
ExceptionExpectation.php:41
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\withCode
withCode(int $code)
Definition:
ExceptionExpectation.php:53
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\withClassName
withClassName(string $className)
Definition:
ExceptionExpectation.php:46
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\Applicable
Definition:
Applicable.php:19
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\$className
string null $className
Definition:
ExceptionExpectation.php:26
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\getClassName
string null getClassName()
Definition:
ExceptionExpectation.php:70
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\$identifier
string $identifier
Definition:
ExceptionExpectation.php:22
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\getMessage
string null getMessage()
Definition:
ExceptionExpectation.php:86
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\getCode
int null getCode()
Definition:
ExceptionExpectation.php:78
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation
Definition:
ExceptionExpectation.php:19
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\describe
describe()
Definition:
ExceptionExpectation.php:91
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder
Definition:
Applicable.php:3
TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\ExceptionExpectation\$message
string null $message
Definition:
ExceptionExpectation.php:34
doxygen
typo3
sysext
frontend
Tests
Functional
SiteHandling
Framework
Builder
ExceptionExpectation.php
Generated on Tue Oct 5 2021 01:57:46 for TYPO3CMS by
1.8.18