Skip to content

Commit 3908280

Browse files
committed
Remove unnecessary unit tests; the assert-lib will cover this
1 parent d68543b commit 3908280

File tree

5 files changed

+0
-80
lines changed

5 files changed

+0
-80
lines changed

tests/SAML2/XML/md/OrganizationURLTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,4 @@ public function testMarshalling(): void
6666
strval($name),
6767
);
6868
}
69-
70-
71-
// test unmarshalling
72-
73-
74-
/**
75-
* Test that creating a OrganizationURL with an invalid url throws an exception
76-
*/
77-
public function testUnmarshallingFailsInvalidURL(): void
78-
{
79-
$document = clone self::$xmlRepresentation;
80-
$document->documentElement->textContent = 'https://a⒈com';
81-
82-
$this->expectException(SchemaViolationException::class);
83-
OrganizationURL::fromXML($document->documentElement);
84-
}
8569
}

tests/SAML2/XML/mdrpi/RegistrationPolicyTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,4 @@ public function testMarshalling(): void
6464
strval($name),
6565
);
6666
}
67-
68-
69-
// test unmarshalling
70-
71-
72-
/**
73-
* Test that creating a RegistrationPolicy with an invalid url throws an exception
74-
*/
75-
public function testUnmarshallingFailsInvalidURL(): void
76-
{
77-
$document = clone self::$xmlRepresentation;
78-
$document->documentElement->textContent = 'https://a⒈com';
79-
80-
$this->expectException(SchemaViolationException::class);
81-
RegistrationPolicy::fromXML($document->documentElement);
82-
}
8367
}

tests/SAML2/XML/mdrpi/UsagePolicyTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,4 @@ public function testMarshalling(): void
6464
strval($name),
6565
);
6666
}
67-
68-
69-
// test unmarshalling
70-
71-
72-
/**
73-
* Test that creating a UsagePolicy with an invalid url throws an exception
74-
*/
75-
public function testUnmarshallingFailsInvalidURL(): void
76-
{
77-
$document = clone self::$xmlRepresentation;
78-
$document->documentElement->textContent = 'https://a⒈com';
79-
80-
$this->expectException(SchemaViolationException::class);
81-
UsagePolicy::fromXML($document->documentElement);
82-
}
8367
}

tests/SAML2/XML/mdui/InformationURLTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,4 @@ public function testMarshalling(): void
6464
strval($name),
6565
);
6666
}
67-
68-
69-
// test unmarshalling
70-
71-
72-
/**
73-
* Test that creating a InformationURL with an invalid url throws an exception
74-
*/
75-
public function testUnmarshallingFailsInvalidURL(): void
76-
{
77-
$document = clone self::$xmlRepresentation;
78-
$document->documentElement->textContent = 'https://a⒈com';
79-
80-
$this->expectException(SchemaViolationException::class);
81-
InformationURL::fromXML($document->documentElement);
82-
}
8367
}

tests/SAML2/XML/mdui/PrivacyStatementURLTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,4 @@ public function testMarshalling(): void
6464
strval($name),
6565
);
6666
}
67-
68-
69-
// test unmarshalling
70-
71-
72-
/**
73-
* Test that creating a PrivacyStatementURL with an invalid url throws an exception
74-
*/
75-
public function testUnmarshallingFailsInvalidURL(): void
76-
{
77-
$document = clone self::$xmlRepresentation;
78-
$document->documentElement->textContent = 'https://a⒈com';
79-
80-
$this->expectException(SchemaViolationException::class);
81-
PrivacyStatementURL::fromXML($document->documentElement);
82-
}
8367
}

0 commit comments

Comments
 (0)