Skip to content

Commit

Permalink
Refactor assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 9, 2025
1 parent 5b9c8f3 commit 74feff3
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 17 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"ext-dom": "*",
"ext-spl": "*",

"simplesamlphp/assert": "~1.7.0",
"simplesamlphp/xml-common": "~1.23.2"
"simplesamlphp/assert": "~1.8.0",
"simplesamlphp/xml-common": "~1.24.0"
},
"require-dev": {
"simplesamlphp/simplesamlphp-test-framework": "^1.7"
"simplesamlphp/simplesamlphp-test-framework": "~1.8.0"
},
"autoload": {
"psr-4": {
Expand Down
16 changes: 16 additions & 0 deletions src/Assert/Assert.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace SimpleSAML\WSDL\Assert;

use SimpleSAML\XML\Assert\Assert as BaseAssert;

/**
* SimpleSAML\WSDL\Assert\Assert wrapper class
*
* @package simplesamlphp/xml-wsdl
*/
class Assert extends BaseAssert
{
}
2 changes: 1 addition & 1 deletion src/XML/soap12/AbstractHeaderFault.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\soap12;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSSecurity\Assert\Assert;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\Exception\SchemaViolationException;

Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractBinding.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractBindingOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractBindingOperationFault.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractBindingOperationMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractDefinitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

use function array_map;
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractFault.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

use function array_map;
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractParam.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractPort.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractPortType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractPortTypeOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

use function explode;
Expand Down
2 changes: 1 addition & 1 deletion src/XML/wsdl/AbstractService.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\WSDL\XML\wsdl;

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\WSDL\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;

use function array_map;
Expand Down

0 comments on commit 74feff3

Please sign in to comment.