Skip to content

Commit

Permalink
Cleanup: some missed parts for schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 2, 2025
1 parent 8c90c8c commit f313caa
Show file tree
Hide file tree
Showing 57 changed files with 0 additions and 114 deletions.
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AdviceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ final class AdviceTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = Advice::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AssertionIDRefTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ final class AssertionIDRefTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AssertionIDRef::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AssertionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ public static function setUpBeforeClass(): void

self::$clock = Utils::getContainer()->getClock();

self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = Assertion::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AssertionURIRefTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ final class AssertionURIRefTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AssertionURIRef::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AttributeStatementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ final class AttributeStatementTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AttributeStatement::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public static function setUpBeforeClass(): void
{
self::$containerBackup = ContainerSingleton::getInstance();

self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = Attribute::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AttributeValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ final class AttributeValueTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AttributeValue::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AudienceRestrictionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ final class AudienceRestrictionTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AudienceRestriction::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AudienceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ final class AudienceTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = Audience::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthenticatingAuthorityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ final class AuthenticatingAuthorityTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthenticatingAuthority::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthnContextClassRefTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ final class AuthnContextClassRefTest extends TestCase

public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthnContextClassRef::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthnContextDeclRefTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ final class AuthnContextDeclRefTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthnContextDeclRef::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthnContextDeclTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ final class AuthnContextDeclTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthnContextDecl::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ final class AuthnContextWithClassRefAndDeclRefTest extends TestCase

public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthnContext::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthnContextWithClassRefAndDeclTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ final class AuthnContextWithClassRefAndDeclTest extends TestCase

public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthnContext::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthnContextWithClassRefTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ final class AuthnContextWithClassRefTest extends TestCase

public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthnContext::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthnContextWithDeclRefTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ final class AuthnContextWithDeclRefTest extends TestCase

public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthnContext::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthnContextWithDeclTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ final class AuthnContextWithDeclTest extends TestCase

public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthnContext::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthnStatementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ final class AuthnStatementTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthnStatement::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/AuthzDecisionStatementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ final class AuthzDecisionStatementTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = AuthzDecisionStatement::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/ConditionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ final class ConditionsTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = Conditions::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/EncryptedAssertionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ public static function setUpBeforeClass(): void
{
self::$containerBackup = ContainerSingleton::getInstance();

self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = EncryptedAssertion::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/EncryptedAttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public static function setUpBeforeClass(): void
{
self::$containerBackup = ContainerSingleton::getInstance();

self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = EncryptedAttribute::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/EncryptedIDTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public static function setUpBeforeClass(): void
{
self::$containerBackup = ContainerSingleton::getInstance();

self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = EncryptedID::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/EvidenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ final class EvidenceTest extends TestCase
*/
protected function setUp(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = Evidence::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/IssuerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ final class IssuerTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = Issuer::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/NameIDTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ final class NameIDTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = NameID::class;

self::$arrayRepresentation = [
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/OneTimeUseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ final class OneTimeUseTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = OneTimeUse::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/ProxyRestrictionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ final class ProxyRestrictionTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = ProxyRestriction::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/SubjectConfirmationDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ final class SubjectConfirmationDataTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = SubjectConfirmationData::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/SubjectConfirmationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public static function setUpBeforeClass(): void
{
self::$clock = Utils::getContainer()->getClock();

self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = SubjectConfirmation::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/SubjectLocalityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ final class SubjectLocalityTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = SubjectLocality::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/saml/SubjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ final class SubjectTest extends TestCase

public function setup(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-assertion-2.0.xsd';

self::$testedClass = Subject::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/ArtifactResolveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ final class ArtifactResolveTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = ArtifactResolve::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/ArtifactResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ final class ArtifactResponseTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = ArtifactResponse::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/ArtifactTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ final class ArtifactTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = Artifact::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/AssertionIDRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ final class AssertionIDRequestTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = AssertionIDRequest::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/AttributeQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public static function setUpBeforeClass(): void
{
self::$clock = Utils::getContainer()->getClock();

self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = AttributeQuery::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/AuthnQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ final class AuthnQueryTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = AuthnQuery::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/AuthnRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ public static function setUpBeforeClass(): void
{
self::$clock = Utils::getContainer()->getClock();

self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = AuthnRequest::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/AuthzDecisionQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ final class AuthzDecisionQueryTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = AuthzDecisionQuery::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/ExtensionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ final class ExtensionsTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = Extensions::class;

self::$xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/GetCompleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ final class GetCompleteTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = GetComplete::class;

self::$arrayRepresentation = ['https://some/location'];
Expand Down
2 changes: 0 additions & 2 deletions tests/SAML2/XML/samlp/IDPEntryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ final class IDPEntryTest extends TestCase
*/
public static function setUpBeforeClass(): void
{
self::$schemaFile = dirname(__FILE__, 5) . '/resources/schemas/saml-schema-protocol-2.0.xsd';

self::$testedClass = IDPentry::class;

self::$arrayRepresentation = [
Expand Down
Loading

0 comments on commit f313caa

Please sign in to comment.