Skip to content

Commit

Permalink
Remove some test-utils that were moved to the test-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 26, 2021
1 parent 2f9ba26 commit d73ae47
Show file tree
Hide file tree
Showing 20 changed files with 84 additions and 306 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"ext-curl": "*",
"mikey179/vfsstream": "~1.6",
"simplesamlphp/simplesamlphp-module-adfs": "dev-master",
"simplesamlphp/simplesamlphp-test-framework": "^1.1.0",
"simplesamlphp/simplesamlphp-test-framework": "^1.1.3",
"simplesamlphp/xml-security": "^0.2.7"
},
"suggest": {
Expand Down
138 changes: 69 additions & 69 deletions composer.lock

Large diffs are not rendered by default.

31 changes: 0 additions & 31 deletions tests/Utils/ArrayLogger.php

This file was deleted.

56 changes: 0 additions & 56 deletions tests/Utils/ClearStateTestCase.php

This file was deleted.

45 changes: 0 additions & 45 deletions tests/Utils/ReduceSpillOverTest.php

This file was deleted.

87 changes: 0 additions & 87 deletions tests/Utils/StateClearer.php

This file was deleted.

3 changes: 0 additions & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
$projectRoot = dirname(__DIR__);
require_once($projectRoot . '/vendor/autoload.php');

// Current SSP autoloader can't resolve classes from the tests folder.
include($projectRoot . '/tests/Utils/ClearStateTestCase.php');

// set the SAML2 container
$container = new \SimpleSAML\Compat\SspContainer();
\SAML2\Compat\ContainerSingleton::setContainer($container);
2 changes: 1 addition & 1 deletion tests/lib/SimpleSAML/Auth/SimpleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use ReflectionClass;
use SimpleSAML\Auth;
use SimpleSAML\Configuration;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;

/**
* Tests for \SimpleSAML\Auth\Simple
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/SimpleSAML/Auth/SourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use ReflectionClass;
use SimpleSAML\Auth;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;
use SimpleSAML\Test\Utils\TestAuthSource;
use SimpleSAML\Test\Utils\TestAuthSourceFactory;

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/SimpleSAML/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use SAML2\Constants;
use SimpleSAML\Configuration;
use SimpleSAML\Error;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;

/**
* Tests for \SimpleSAML\Configuration
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/SimpleSAML/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
use PHPUnit\Framework\TestCase;
use SimpleSAML\Configuration;
use SimpleSAML\Logger;
use SimpleSAML\Test\Utils\ArrayLogger;
use SimpleSAML\TestUtils\ArrayLogger;

class LoggerTest extends TestCase
{
/**
* @var Logger\LoggingHandlerInterface|null
* @var \SimpleSAML\Logger\LoggingHandlerInterface|null
*/
protected $originalLogger;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use SimpleSAML\Configuration;
use SimpleSAML\Metadata\MetaDataStorageHandler;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;

/**
* @covers \SimpleSAML\Metadata\MetadataStorageHandler
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/SimpleSAML/SessionHandlerPHPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\Test\Utils;

use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;
use SimpleSAML\SessionHandlerPHP;
use SimpleSAML\Configuration;

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/SimpleSAML/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace SimpleSAML\Test\Utils;

use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;
use SimpleSAML\Session;
use SimpleSAML\Configuration;

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/SimpleSAML/Utils/EMailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Exception;
use InvalidArgumentException;
use SimpleSAML\Configuration;
use SimpleSAML\Test\Utils\TestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;
use SimpleSAML\Utils\EMail;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/SimpleSAML/Utils/HTTPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use PHPUnit\Framework\TestCase;
use SimpleSAML\Configuration;
use SimpleSAML\Error;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;
use SimpleSAML\Utils;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/core/lib/Controller/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use SimpleSAML\Locale\Localization;
use SimpleSAML\Module\core\Controller;
use SimpleSAML\Session;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;
use SimpleSAML\XHTML\Template;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/multiauth/lib/Auth/Source/MultiAuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Error;
use Exception;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;
use SimpleSAML\Configuration;
use SimpleSAML\Module\multiauth\Auth\Source\MultiAuth;

Expand Down
2 changes: 1 addition & 1 deletion tests/modules/saml/lib/Auth/Source/SPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use SimpleSAML\Module\saml\Error\NoAvailableIDP;
use SimpleSAML\Module\saml\Error\NoSupportedIDP;
use SimpleSAML\Test\Metadata\MetaDataStorageSourceTest;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;
use SimpleSAML\Test\Utils\ExitTestException;
use SimpleSAML\Test\Utils\SpTester;

Expand Down
2 changes: 1 addition & 1 deletion tests/modules/saml/lib/IdP/SAML2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use SimpleSAML\Metadata\MetaDataStorageHandler;
use SimpleSAML\Metadata\MetaDataStorageHandlerSerialize;
use SimpleSAML\Module\saml\IdP\SAML2;
use SimpleSAML\Test\Utils\ClearStateTestCase;
use SimpleSAML\TestUtils\ClearStateTestCase;

/**
* @covers \SimpleSAML\Module\saml\IdP\SAML2
Expand Down

0 comments on commit d73ae47

Please sign in to comment.