Skip to content
Snippets Groups Projects
Commit b08104d1 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

phpcs: fix multiline statements + indentation

parent ab79d1d0
No related branches found
No related tags found
No related merge requests found
......@@ -284,9 +284,13 @@ EOT;
$this->assertArrayHasKey('SingleSignOnService', $hostedMd);
$this->assertIsArray($hostedMd['SingleSignOnService']);
$this->assertCount(1, $hostedMd['SingleSignOnService']);
$this->assertEquals(['Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService'],
$hostedMd['SingleSignOnService'][0]);
$this->assertEquals(
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService'
],
$hostedMd['SingleSignOnService'][0]
);
$this->assertArrayHasKey('SingleLogoutService', $hostedMd);
$this->assertIsArray($hostedMd['SingleLogoutService']);
$this->assertCount(1, $hostedMd['SingleLogoutService']);
......@@ -382,9 +386,13 @@ EOT;
],
$hostedMd['SingleSignOnService'][0]
);
$this->assertEquals(['Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService'],
$hostedMd['SingleSignOnService'][1]);
$this->assertEquals(
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService'
],
$hostedMd['SingleSignOnService'][1]
);
}
public function testIdPGetHostedMetadataECP(): void
......@@ -395,12 +403,21 @@ EOT;
$this->assertArrayHasKey('SingleSignOnService', $hostedMd);
$this->assertIsArray($hostedMd['SingleSignOnService']);
$this->assertCount(2, $hostedMd['SingleSignOnService']);
$this->assertEquals(['Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService'],
$hostedMd['SingleSignOnService'][0]);
$this->assertEquals(['Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP', 'index' => 0,
'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService'],
$hostedMd['SingleSignOnService'][1]);
$this->assertEquals(
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService'
],
$hostedMd['SingleSignOnService'][0]
);
$this->assertEquals(
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP',
'index' => 0,
'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService'
],
$hostedMd['SingleSignOnService'][1]
);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment