From 0a62960b44a264086d5c43db37b8b293b411a4b6 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tim.dijen@minbzk.nl> Date: Wed, 7 Aug 2019 16:13:55 +0200 Subject: [PATCH] Shorthand arrays --- .../modules/core/lib/Auth/Process/PHPTest.php | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/modules/core/lib/Auth/Process/PHPTest.php b/tests/modules/core/lib/Auth/Process/PHPTest.php index 716d8b679..0b294250e 100644 --- a/tests/modules/core/lib/Auth/Process/PHPTest.php +++ b/tests/modules/core/lib/Auth/Process/PHPTest.php @@ -127,28 +127,28 @@ class PHPTest extends TestCase public function testStateCanBeModified() { - $config = array( + $config = ] 'code' => ' $attributes["orig2"] = array("value0"); $state["newKey"] = ["newValue"]; $state["Destination"]["attributes"][] = "givenName"; ', - ); - $request = array( - 'Attributes' => array( - 'orig1' => array('value1', 'value2'), - 'orig2' => array('value3'), - 'orig3' => array('value4') - ), + ]; + $request = [ + 'Attributes' => [ + 'orig1' => ['value1', 'value2'], + 'orig2' => ['value3'], + 'orig3' => ['value4'] + ], 'Destination' => [ 'attributes' => ['eduPersonPrincipalName'] ], - ); - $expected = array( - 'Attributes' => array( - 'orig1' => array('value1', 'value2'), - 'orig2' => array('value0'), - 'orig3' => array('value4') + ]; + $expected = [ + 'Attributes' => [ + 'orig1' => ['value1', 'value2'], + 'orig2' => ['value0'], + 'orig3' => ['value4'] ), 'Destination' => [ 'attributes' => ['eduPersonPrincipalName', 'givenName'] -- GitLab