finally { static::
assertTrue($exceptionWasThrown, 'Excepted exception with error code ' .
$errorCode . ' to be thrown.'
);
} } /**
* @return array<string, array{exception: PageNotFoundException, statusCode: int, errorCode: string, message: string}>
*/
public static function exceptionDataProvider(): iterable
{ yield PageNotFoundException::ERROR_CODE =>
[ 'exception' =>
new PageNotFoundException('cmsPageId'
),
'statusCode' => Response::HTTP_NOT_FOUND,
'errorCode' => PageNotFoundException::ERROR_CODE,
'message' => 'Page with id "cmsPageId" was not found.',
];
}}