Skip to content

Commit 6a2919e

Browse files
Remove require_all() lines in bootstrap.php. Move to using autoload-dev in composer.json
1 parent 8761cb7 commit 6a2919e

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
},
3131
"autoload-dev": {
3232
"psr-4": {
33-
"SimpleSAML\\Test\\Utils\\": "vendor/simplesamlphp/simplesamlphp/tests/Utils"
33+
"SimpleSAML\\Test\\Utils\\": "vendor/simplesamlphp/simplesamlphp/tests/Utils",
34+
"SimpleSAML\\Test\\Module\\sqlauth\\Auth\\Source\\": "tests/src/Auth/Source/"
3435
}
3536
},
3637
"require": {

tests/bootstrap.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
$projectRoot = dirname(__DIR__);
66
require_once($projectRoot . '/vendor/autoload.php');
77

8-
9-
// Load our wrapper class to get around login() being declared protected in SQL.php
10-
require_once($projectRoot . '/tests/src/Auth/Source/WrapperInterface.php');
11-
require_once($projectRoot . '/tests/src/Auth/Source/SQLWrapper.php');
12-
require_once($projectRoot . '/tests/src/Auth/Source/SQL2Wrapper.php');
13-
require_once($projectRoot . '/tests/src/Auth/Source/SQL1CompatWrapper.php');
14-
require_once($projectRoot . '/tests/src/Auth/Source/PasswordVerifyWrapper.php');
15-
require_once($projectRoot . '/tests/src/Auth/Source/PasswordVerify1CompatWrapper.php');
16-
17-
// We use inheritance quite extensively in our test cases, so we need to
18-
// make sure all the classes that are subclassed are loaded before we run any tests.
19-
require_once($projectRoot . '/tests/src/Auth/Source/PasswordVerifyTest.php');
20-
require_once($projectRoot . '/tests/src/Auth/Source/SQLTest.php');
21-
require_once($projectRoot . '/tests/src/Auth/Source/SQL2SimpleTest.php');
22-
require_once($projectRoot . '/tests/src/Auth/Source/SQL2SingleAuthTest.php');
23-
248
// Symlink module into ssp vendor lib so that templates and urls can resolve correctly
259
$linkPath = $projectRoot . '/vendor/simplesamlphp/simplesamlphp/modules/sqlauth';
2610
if (file_exists($linkPath) === false) {

0 commit comments

Comments
 (0)