1 | <?php |
||
17 | class ValidationErrorOccurs extends \PHPUnit_Framework_Constraint |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $expectedValidationErrorMessage; |
||
23 | |||
24 | /** |
||
25 | * @param string $expectedValidationErrorMessage |
||
26 | */ |
||
27 | public function __construct($expectedValidationErrorMessage) |
||
33 | |||
34 | /** |
||
35 | * @param \eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException $other |
||
36 | * |
||
37 | * @return bool |
||
38 | */ |
||
39 | protected function matches($other) |
||
54 | |||
55 | /** |
||
56 | * @param \eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException $other |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | protected function failureDescription($other) |
||
69 | |||
70 | /** |
||
71 | * Returns a string representation of the object. |
||
72 | * |
||
73 | * @return string |
||
74 | */ |
||
75 | public function toString() |
||
79 | } |
||
80 |