Open Journal Systems
3.3.0
ResponseIsSuccessful.php
1
<?php
2
3
/*
4
* This file is part of the Symfony package.
5
*
6
* (c) Fabien Potencier <fabien@symfony.com>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Symfony\Component\HttpFoundation\Test\Constraint
;
13
14
use PHPUnit\Framework\Constraint\Constraint;
15
use
Symfony\Component\HttpFoundation\Response
;
16
17
final
class
ResponseIsSuccessful
extends
Constraint
18
{
22
public
function
toString
(): string
23
{
24
return
'is successful'
;
25
}
26
32
protected
function
matches
($response): bool
33
{
34
return
$response->isSuccessful();
35
}
36
42
protected
function
failureDescription
($response): string
43
{
44
return
'the Response '
.$this->toString();
45
}
46
52
protected
function
additionalFailureDescription
($response): string
53
{
54
return
(
string
) $response;
55
}
56
}
Symfony\Component\HttpFoundation\Test\Constraint\ResponseIsSuccessful\additionalFailureDescription
additionalFailureDescription($response)
Definition:
ResponseIsSuccessful.php:52
Symfony\Component\HttpFoundation\Response
Definition:
lib/vendor/symfony/http-foundation/Response.php:19
Symfony\Component\HttpFoundation\Test\Constraint\ResponseIsSuccessful
Definition:
ResponseIsSuccessful.php:17
Symfony\Component\HttpFoundation\Test\Constraint\ResponseIsSuccessful\matches
matches($response)
Definition:
ResponseIsSuccessful.php:32
Symfony\Component\HttpFoundation\Test\Constraint\ResponseIsSuccessful\toString
toString()
Definition:
ResponseIsSuccessful.php:22
Symfony\Component\HttpFoundation\Test\Constraint\ResponseIsSuccessful\failureDescription
failureDescription($response)
Definition:
ResponseIsSuccessful.php:42
Symfony\Component\HttpFoundation\Test\Constraint
Definition:
RequestAttributeValueSame.php:12
plugins
paymethod
paypal
vendor
symfony
http-foundation
Test
Constraint
ResponseIsSuccessful.php
Generated on Fri Aug 28 2020 14:53:26 for Open Journal Systems by
1.8.17