@@ -392,7 +392,7 @@ public function testCheckSettings()
392392 $ this ->assertContains ('contact_type_invalid ' , $ e ->getMessage ());
393393 }
394394
395- $ settingsInfo ['security ' ]['signMetadata ' ] = [ 'privateKey ' => file_get_contents (TEST_ROOT . '/data/customPath/certs/metadata.key ' )] ;
395+ $ settingsInfo ['security ' ]['signMetadata ' ] = array ( 'privateKey ' => file_get_contents (TEST_ROOT . '/data/customPath/certs/metadata.key ' )) ;
396396 try {
397397 $ settings = new OneLogin_Saml2_Settings ($ settingsInfo );
398398 $ this ->fail ('Error was not raised ' );
@@ -456,56 +456,56 @@ public function testGetSPMetadataWithX509CertNew($alwaysIncludeEncryption, $want
456456
457457 public function testGetSPMetadataWithX509CertNewDataProvider ()
458458 {
459- return [
460- 'settings do not require encryption ' => [
459+ return array (
460+ 'settings do not require encryption ' => array (
461461 'alwaysIncludeEncryption ' => false ,
462462 'wantNameIdEncrypted ' => false ,
463463 'wantAssertionsEncrypted ' => false ,
464464 'expectEncryptionKeyDescriptor ' => false ,
465- ] ,
466- 'wantNameIdEncrypted setting enabled ' => [
465+ ) ,
466+ 'wantNameIdEncrypted setting enabled ' => array (
467467 'alwaysIncludeEncryption ' => false ,
468468 'wantNameIdEncrypted ' => true ,
469469 'wantAssertionsEncrypted ' => false ,
470470 'expectEncryptionKeyDescriptor ' => true ,
471- ] ,
472- 'wantAssertionsEncrypted setting enabled ' => [
471+ ) ,
472+ 'wantAssertionsEncrypted setting enabled ' => array (
473473 'alwaysIncludeEncryption ' => false ,
474474 'wantNameIdEncrypted ' => false ,
475475 'wantAssertionsEncrypted ' => true ,
476476 'expectEncryptionKeyDescriptor ' => true ,
477- ] ,
478- 'both settings enabled ' => [
477+ ) ,
478+ 'both settings enabled ' => array (
479479 'alwaysIncludeEncryption ' => false ,
480480 'wantNameIdEncrypted ' => true ,
481481 'wantAssertionsEncrypted ' => true ,
482482 'expectEncryptionKeyDescriptor ' => true ,
483- ] ,
484- 'metadata requested with encryption ' => [
483+ ) ,
484+ 'metadata requested with encryption ' => array (
485485 'alwaysIncludeEncryption ' => true ,
486486 'wantNameIdEncrypted ' => false ,
487487 'wantAssertionsEncrypted ' => false ,
488488 'expectEncryptionKeyDescriptor ' => true ,
489- ] ,
490- 'metadata requested with encryption and wantNameIdEncrypted setting enabled ' => [
489+ ) ,
490+ 'metadata requested with encryption and wantNameIdEncrypted setting enabled ' => array (
491491 'alwaysIncludeEncryption ' => true ,
492492 'wantNameIdEncrypted ' => true ,
493493 'wantAssertionsEncrypted ' => false ,
494494 'expectEncryptionKeyDescriptor ' => true ,
495- ] ,
496- 'metadata requested with encryption and wantAssertionsEncrypted setting enabled ' => [
495+ ) ,
496+ 'metadata requested with encryption and wantAssertionsEncrypted setting enabled ' => array (
497497 'alwaysIncludeEncryption ' => true ,
498498 'wantNameIdEncrypted ' => false ,
499499 'wantAssertionsEncrypted ' => true ,
500500 'expectEncryptionKeyDescriptor ' => true ,
501- ] ,
502- 'metadata requested with encryption and both settings enabled ' => [
501+ ) ,
502+ 'metadata requested with encryption and both settings enabled ' => array (
503503 'alwaysIncludeEncryption ' => true ,
504504 'wantNameIdEncrypted ' => true ,
505505 'wantAssertionsEncrypted ' => true ,
506506 'expectEncryptionKeyDescriptor ' => true ,
507- ] ,
508- ] ;
507+ ) ,
508+ ) ;
509509 }
510510
511511 /**
@@ -599,10 +599,10 @@ public function testGetSPMetadataSigned()
599599 $ this ->assertContains ('<ds:KeyInfo><ds:X509Data><ds:X509Certificate> ' , $ metadata2 );
600600
601601 $ cert = file_get_contents (TEST_ROOT . '/data/customPath/certs/metadata.crt ' );
602- $ settingsInfo ['security ' ]['signMetadata ' ] = [
602+ $ settingsInfo ['security ' ]['signMetadata ' ] = array (
603603 'privateKey ' => file_get_contents (TEST_ROOT . '/data/customPath/certs/metadata.key ' ),
604604 'x509cert ' => $ cert ,
605- ] ;
605+ ) ;
606606 $ settings3 = new OneLogin_Saml2_Settings ($ settingsInfo );
607607 $ metadata3 = $ settings3 ->getSPMetadata ();
608608 $ this ->assertNotEmpty ($ metadata3 );
0 commit comments