Skip to content

Commit c582405

Browse files
Update simplesamlphp/assert requirement from ~1.6.0 to ~1.7.0 in the production-dependencies group (#371)
* Update simplesamlphp/assert requirement Updates the requirements on [simplesamlphp/assert](https://github.com/simplesamlphp/assert) to permit the latest version. Updates `simplesamlphp/assert` to 1.7.0 - [Release notes](https://github.com/simplesamlphp/assert/releases) - [Commits](simplesamlphp/assert@v1.6.0...v1.7.0) --- updated-dependencies: - dependency-name: simplesamlphp/assert dependency-type: direct:production dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * Remove unnecessary unit tests; the assert-lib will cover this * Remove incorrect test; diacritical characters are allowed in URI --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tim van Dijen <[email protected]>
1 parent 6ab26da commit c582405

File tree

8 files changed

+3
-83
lines changed

8 files changed

+3
-83
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"psr/clock": "^1.0",
3232
"psr/http-message": "^2.0",
3333
"psr/log": "^2.0 || ^3.0",
34-
"simplesamlphp/assert": "~1.6.0",
34+
"simplesamlphp/assert": "~1.7.0",
3535
"simplesamlphp/xml-common": "~1.23.0",
3636
"simplesamlphp/xml-security": "~1.12.0",
3737
"simplesamlphp/xml-soap": "~1.6.0"

tests/SAML2/Assert/EntityIDTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function provideEntityID(): array
4747
'urn' => [true, 'urn:x-simplesamlphp:phpunit'],
4848
'same-doc' => [false, '#_53d830ab1be17291a546c95c7f1cdf8d3d23c959e6'],
4949
'url' => [true, 'https://www.simplesamlphp.org'],
50-
'invalid_char' => [false, 'https://a⒈com'],
50+
'utf8_char' => [true, 'https://aä.com'],
5151
'intl' => [true, 'https://niño.com'],
5252
'spn' => [true, 'spn:a4cf592f-a64c-46ff-a788-b260f474525b'],
5353
'typos' => [false, 'https//www.uni.l/en/'],

tests/SAML2/Assert/URITest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function provideURI(): array
4444
'urn' => [true, 'urn:x-simplesamlphp:phpunit'],
4545
'same-doc' => [false, '#_53d830ab1be17291a546c95c7f1cdf8d3d23c959e6'],
4646
'url' => [true, 'https://www.simplesamlphp.org'],
47-
'invalid_char' => [false, 'https://a⒈com'],
47+
'utf8_char' => [true, 'https://aä.com'],
4848
'intl' => [true, 'https://niño.com'],
4949
'spn' => [true, 'spn:a4cf592f-a64c-46ff-a788-b260f474525b'],
5050
'typos' => [false, 'https//www.uni.l/en/'],

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)