From 857c9dcba9feba3fdd252143c5f5aa914aebf1ed Mon Sep 17 00:00:00 2001 From: Patrick Radtke <patrick@cirrusidentity.com> Date: Tue, 23 Feb 2016 15:52:48 -0800 Subject: [PATCH] Fix php 5.3 syntax issue --- tests/lib/SimpleSAML/Metadata/SAMLParserTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lib/SimpleSAML/Metadata/SAMLParserTest.php b/tests/lib/SimpleSAML/Metadata/SAMLParserTest.php index 95874317c..ce5fdd506 100644 --- a/tests/lib/SimpleSAML/Metadata/SAMLParserTest.php +++ b/tests/lib/SimpleSAML/Metadata/SAMLParserTest.php @@ -33,7 +33,8 @@ XML $entities = \SimpleSAML_Metadata_SAMLParser::parseDescriptorsElement($document->documentElement); $this->assertArrayHasKey('theEntityID', $entities); // RegistrationInfo is accessible in the SP or IDP metadata accessors - $this->assertEquals($expected, $entities['theEntityID']->getMetadata20SP()['RegistrationInfo']); + $metadata = $entities['theEntityID']->getMetadata20SP(); + $this->assertEquals($expected, $metadata['RegistrationInfo']); } } -- GitLab