Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 038cb6f

Browse files
committed
Refactor assertions
1 parent 29ec4c9 commit 038cb6f

195 files changed

Lines changed: 213 additions & 199 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"ext-dom": "*",
1515
"ext-spl": "*",
1616

17-
"simplesamlphp/assert": "~1.7.0",
18-
"simplesamlphp/composer-xmlprovider-installer": "~1.0.0",
17+
"simplesamlphp/assert": "~1.8.1",
18+
"simplesamlphp/composer-xmlprovider-installer": "~1.0.1",
1919
"simplesamlphp/saml2": "^5@dev",
20-
"simplesamlphp/xml-security": "~1.12.0",
21-
"simplesamlphp/xml-common": "~1.23.2"
20+
"simplesamlphp/xml-security": "~1.13.0",
21+
"simplesamlphp/xml-common": "~1.24.0"
2222
},
2323
"require-dev": {
24-
"simplesamlphp/simplesamlphp-test-framework": "^1.8"
24+
"simplesamlphp/simplesamlphp-test-framework": "~1.8.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

src/Assert/Assert.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SimpleSAML\WSSecurity\Assert;
6+
7+
use SimpleSAML\XMLSecurity\Assert\Assert as BaseAssert;
8+
9+
/**
10+
* @package simplesamlphp/ws-security
11+
*/
12+
class Assert extends BaseAssert
13+
{
14+
}

src/XML/ReferenceIdentifierTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SimpleSAML\WSSecurity\XML;
66

7-
use SimpleSAML\Assert\Assert;
7+
use SimpleSAML\WSSecurity\Assert\Assert;
88
use SimpleSAML\XML\Exception\SchemaViolationException;
99

1010
/**

src/XML/auth/AbstractAdditionalContextType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\auth;
66

77
use DOMElement;
8-
use SimpleSAML\Assert\Assert;
8+
use SimpleSAML\WSSecurity\Assert\Assert;
99
use SimpleSAML\WSSecurity\XML\auth\ContextItem;
1010
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1111
use SimpleSAML\XML\ExtendableAttributesTrait;

src/XML/auth/AbstractClaimType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\auth;
66

77
use DOMElement;
8-
use SimpleSAML\Assert\Assert;
8+
use SimpleSAML\WSSecurity\Assert\Assert;
99
use SimpleSAML\WSSecurity\XML\auth\ConstrainedValue;
1010
use SimpleSAML\WSSecurity\XML\auth\Description;
1111
use SimpleSAML\WSSecurity\XML\auth\DisplayName;

src/XML/auth/AbstractConstrainedManyValueType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\auth;
66

77
use DOMElement;
8-
use SimpleSAML\Assert\Assert;
8+
use SimpleSAML\WSSecurity\Assert\Assert;
99
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1010

1111
/**

src/XML/auth/AbstractConstrainedSingleValueType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\auth;
66

77
use DOMElement;
8-
use SimpleSAML\Assert\Assert;
8+
use SimpleSAML\WSSecurity\Assert\Assert;
99
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1010
use SimpleSAML\XML\Exception\TooManyElementsException;
1111

src/XML/auth/AbstractConstrainedValueType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\auth;
66

77
use DOMElement;
8-
use SimpleSAML\Assert\Assert;
8+
use SimpleSAML\WSSecurity\Assert\Assert;
99
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1010
use SimpleSAML\XML\Exception\MissingElementException;
1111
use SimpleSAML\XML\Exception\TooManyElementsException;

src/XML/auth/AbstractContextItemType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\auth;
66

77
use DOMElement;
8-
use SimpleSAML\Assert\Assert;
8+
use SimpleSAML\WSSecurity\Assert\Assert;
99
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1010
use SimpleSAML\XML\Exception\SchemaViolationException;
1111
use SimpleSAML\XML\Exception\TooManyElementsException;

src/XML/auth/AbstractDescriptionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\auth;
66

77
use DOMElement;
8-
use SimpleSAML\Assert\Assert;
8+
use SimpleSAML\WSSecurity\Assert\Assert;
99
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1010
use SimpleSAML\XML\ExtendableAttributesTrait;
1111
use SimpleSAML\XML\StringElementTrait;

0 commit comments

Comments
 (0)