fail('This test should have thrown an InvalidArnException.'); } catch (InvalidArnException $e) { $this->assertEquals($message, $e->getMessage()); } } public function invalidArnCases() { return [ [ 'arn:bar:baz:seven:com:accesspoint:resource-id', "The 3rd component of an S3 access point ARN represents the" . " region and must be 's3'.", ], ]; } }