Skip to content

Commit

Permalink
Add schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 7, 2022
1 parent 580682d commit 2a0bb63
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/XML/cas/AuthenticationFailureTest.php
Expand Up @@ -18,6 +18,7 @@
* Class \SimpleSAML\CAS\XML\cas\AuthenticationFailureTest
*
* @covers \SimpleSAML\CAS\XML\cas\AuthenticationFailure
* @covers \SimpleSAML\CAS\XML\cas\AbstractResponse
* @covers \SimpleSAML\CAS\XML\cas\AbstractCasElement
*
* @package simplesamlphp/cas
Expand Down
1 change: 1 addition & 0 deletions tests/XML/cas/AuthenticationSuccessTest.php
Expand Up @@ -28,6 +28,7 @@
*
* @covers \SimpleSAML\CAS\Utils\XPath
* @covers \SimpleSAML\CAS\XML\cas\AuthenticationSuccess
* @covers \SimpleSAML\CAS\XML\cas\AbstractResponse
* @covers \SimpleSAML\CAS\XML\cas\AbstractCasElement
*
* @package simplesamlphp/cas
Expand Down
1 change: 0 additions & 1 deletion tests/XML/cas/ProxiesTest.php
Expand Up @@ -27,7 +27,6 @@ final class ProxiesTest extends TestCase
{
use SerializableElementTestTrait;


/**
*/
protected function setUp(): void
Expand Down
1 change: 1 addition & 0 deletions tests/XML/cas/ProxyFailureTest.php
Expand Up @@ -18,6 +18,7 @@
* Class \SimpleSAML\CAS\XML\cas\ProxyFailureTest
*
* @covers \SimpleSAML\CAS\XML\cas\ProxyFailure
* @covers \SimpleSAML\CAS\XML\cas\AbstractResponse
* @covers \SimpleSAML\CAS\XML\cas\AbstractCasElement
*
* @package simplesamlphp/cas
Expand Down
1 change: 1 addition & 0 deletions tests/XML/cas/ProxySuccessTest.php
Expand Up @@ -19,6 +19,7 @@
* Class \SimpleSAML\CAS\XML\cas\ProxySuccessTest
*
* @covers \SimpleSAML\CAS\XML\cas\ProxySuccess
* @covers \SimpleSAML\CAS\XML\cas\AbstractResponse
* @covers \SimpleSAML\CAS\XML\cas\AbstractCasElement
*
* @package simplesamlphp/cas
Expand Down
4 changes: 4 additions & 0 deletions tests/XML/cas/ServiceResponseTest.php
Expand Up @@ -14,6 +14,7 @@
use SimpleSAML\CAS\XML\cas\ProxyGrantingTicket;
use SimpleSAML\CAS\XML\cas\ServiceResponse;
use SimpleSAML\CAS\XML\cas\User;
use SimpleSAML\Test\XML\SchemaValidationTestTrait;
use SimpleSAML\Test\XML\SerializableElementTestTrait;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand All @@ -31,12 +32,15 @@
*/
final class ServiceResponseTest extends TestCase
{
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

/**
*/
protected function setUp(): void
{
$this->schema = dirname(dirname(dirname(dirname(__FILE__)))) . '/schemas/cas-server-protocol-3.0.xsd';

$this->testedClass = ServiceResponse::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
Expand Down

0 comments on commit 2a0bb63

Please sign in to comment.