From db5dcdac276d1bc54be8599ef754f9ac826ff998 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Mon, 5 Aug 2019 22:20:10 +0200 Subject: [PATCH] Shorthand arrays --- .../source1/saml20-sp-remote.php | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/lib/SimpleSAML/Metadata/test-metadata/source1/saml20-sp-remote.php b/tests/lib/SimpleSAML/Metadata/test-metadata/source1/saml20-sp-remote.php index 379d1e45c..e6de7efd5 100644 --- a/tests/lib/SimpleSAML/Metadata/test-metadata/source1/saml20-sp-remote.php +++ b/tests/lib/SimpleSAML/Metadata/test-metadata/source1/saml20-sp-remote.php @@ -1,60 +1,60 @@ <?php -$metadata['entityA'] = array( +$metadata['entityA'] = [ 'entityid' => 'entityA', 'name' => - array( + [ 'en' => 'entityA SP from source1', - ), + ], 'metadata-set' => 'saml20-sp-remote', 'AssertionConsumerService' => - array( + [ 0 => - array( + [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Location' => 'https://entityA.example.org/Shibboleth.sso/SAML2/POST', 'index' => 1, 'isDefault' => true, - ), - ) -); + ], + ] +]; -$metadata['entityInBoth'] = array( +$metadata['entityInBoth'] = [ 'entityid' => 'entityInBoth', 'name' => - array( + [ 'en' => 'entityInBoth SP from source1', - ), + ], 'metadata-set' => 'saml20-sp-remote', 'AssertionConsumerService' => - array( + [ 0 => - array( + [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Location' => 'https://entityInBoth.example.org/Shibboleth.sso/SAML2/POST', 'index' => 1, 'isDefault' => true, - ), - ) -); + ], + ] +]; -$metadata['expiredInSrc1InSrc2'] = array( +$metadata['expiredInSrc1InSrc2'] = [ 'entityid' => 'expiredInSrc1InSrc2', // This entity is expired in src1 but unexpired in src2 'expire' => 1, 'name' => - array( + [ 'en' => 'expiredInSrc1InSrc2 SP from source1', - ), + ], 'metadata-set' => 'saml20-sp-remote', 'AssertionConsumerService' => - array( + [ 0 => - array( + [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Location' => 'https://expiredInSrc1InSrc2.example.org/Shibboleth.sso/SAML2/POST', 'index' => 1, 'isDefault' => true, - ), - ) -); \ No newline at end of file + ], + ] +]; -- GitLab