diff --git a/.appveyor.yml b/.appveyor.yml index 78b8a60ee1236559cb948a7f6eaa248999b12dfd..f61289ad691ffd22bea93ff6fd0edcd7635528a7 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,13 +1,11 @@ build: false shallow_clone: false -version: '1.19.0.{build}' +version: '2.0.0.{build}' platform: 'x64' clone_folder: C:\projects\simplesamlphp environment: matrix: - - PHP_VERSION: "7.0" - - PHP_VERSION: "7.1" - PHP_VERSION: "7.2" - PHP_VERSION: "7.3" diff --git a/.travis.yml b/.travis.yml index 3f51b83ca41435f6f00e2dc813044901c11c2879..c2b31acd52faea0764129e4540b0c8db81b9ed1a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,10 +15,9 @@ stages: ################ php: - - 7.0 - - 7.1 - 7.2 - 7.3 + - 7.4 env: - COMMAND="composer install" @@ -33,13 +32,13 @@ script: jobs: fast_finish: true allow_failures: - - php: 7.0 + - php: 7.2 env: Psalm - - php: 7.0 + - php: 7.2 env: Security check (composer install) - - php: 7.0 + - php: 7.2 env: Security check (composer update) - - php: 7.0 + - php: 7.2 env: PHP Codesniffer include: @@ -49,7 +48,7 @@ jobs: ########################## - stage: pre-conditions - php: 7.0 + php: 7.2 env: Syntax check PHP before_script: - composer install @@ -57,7 +56,7 @@ jobs: - vendor/bin/check-syntax-php.sh - stage: pre-conditions - php: 7.1 + php: 7.2 env: Syntax check PHP before_script: - composer install @@ -65,7 +64,7 @@ jobs: - vendor/bin/check-syntax-php.sh - stage: pre-conditions - php: 7.2 + php: 7.3 env: Syntax check PHP before_script: - composer install @@ -73,7 +72,7 @@ jobs: - vendor/bin/check-syntax-php.sh - stage: pre-conditions - php: 7.3 + php: 7.4 env: Syntax check PHP before_script: - composer install diff --git a/TESTING.md b/TESTING.md index f9bd5c9f6a57bfc01bae17ed3827b0300451b2e2..c46cf4956c5c3aab11f039604305bcb3b55b7777 100644 --- a/TESTING.md +++ b/TESTING.md @@ -45,9 +45,8 @@ throws an exception in a specific situation: $this->expectException(ExpectedException::class); ``` -Refer to [the `phpunit 5.7` documentation](https://phpunit.de/manual/5.7/en/installation.html) -for more information on how to write tests. We currently use the `phpunit 5.7` -since it is the last version to support php 5.6. +Refer to [the `phpunit 8.5` documentation](https://phpunit.readthedocs.io/en/8.5/) +for more information on how to write tests. Once you have implemented your tests, you can run them locally. First, make sure the `config` directory is **not** in the root of your diff --git a/composer.json b/composer.json index 36fdec9c52fd524d627bf79907ad898ec1dd6989..a8acfa485c8a1e74ecd83447537370f7292c8249 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "files": ["tests/_autoload_modules.php"] }, "require": { - "php": ">=7.0", + "php": ">=7.2", "ext-SPL": "*", "ext-zlib": "*", "ext-pcre": "*", diff --git a/modules/admin/lib/Controller/Config.php b/modules/admin/lib/Controller/Config.php index 0961fa9d4906c9f7dc100a2f000316ea24000bec..445ff8c23b350fbf1e0ae0d530b6fea3562488f0 100644 --- a/modules/admin/lib/Controller/Config.php +++ b/modules/admin/lib/Controller/Config.php @@ -157,11 +157,11 @@ class Config 'descr' => [ Translate::noop('PHP %minimum% or newer is needed. You are running: %current%'), [ - '%minimum%' => '7.0', + '%minimum%' => '7.2', '%current%' => explode('-', phpversion())[0] ] ], - 'enabled' => version_compare(phpversion(), '7.0', '>=') + 'enabled' => version_compare(phpversion(), '7.2', '>=') ] ]; $store = $this->config->getString('store.type', ''); diff --git a/modules/core/config/routes/routes.yaml b/modules/core/config/routes/routes.yaml index 44913ee604d69450bcd7f09e5c10bb2bae7831f8..12884b024d2a3c05e82a3351498f0b5043b0c64a 100644 --- a/modules/core/config/routes/routes.yaml +++ b/modules/core/config/routes/routes.yaml @@ -7,9 +7,6 @@ core-account-disco-clearchoices: core-login: path: /login/{as} defaults: { _controller: 'SimpleSAML\Module\core\Controller\Login:login', as: null } -core-account: - path: /account/{as} - defaults: { _controller: 'SimpleSAML\Module\core\Controller\Login:account' } core-logout: path: /logout/{as} defaults: { _controller: 'SimpleSAML\Module\core\Controller\Login:logout' } diff --git a/modules/core/hooks/hook_sanitycheck.php b/modules/core/hooks/hook_sanitycheck.php index 9ca2283a2b77a1be4d1ac0b3a61dd339b6084cf7..9bf9132d59f0e476a222e9470e9f2c494d72da7d 100644 --- a/modules/core/hooks/hook_sanitycheck.php +++ b/modules/core/hooks/hook_sanitycheck.php @@ -28,7 +28,7 @@ function core_hook_sanitycheck(&$hookinfo) $hookinfo['info'][] = '[core] In config.php technicalcontact_email is set properly'; } - if (version_compare(phpversion(), '7.0', '>=')) { + if (version_compare(phpversion(), '7.2', '>=')) { $hookinfo['info'][] = '[core] You are running a PHP version suitable for SimpleSAMLphp.'; } else { $hookinfo['errors'][] = '[core] You are running an old PHP installation. ' . diff --git a/modules/core/www/frontpage_config.php b/modules/core/www/frontpage_config.php index 6669498cbcec3051e6a6c1bfbc237f7dfd214a3a..1cfba39f5d7205320132f139faa4e976a0e12a5f 100644 --- a/modules/core/www/frontpage_config.php +++ b/modules/core/www/frontpage_config.php @@ -123,8 +123,8 @@ if (\SimpleSAML\Module::isModuleEnabled('radius')) { $funcmatrix = []; $funcmatrix[] = [ 'required' => 'required', - 'descr' => 'PHP Version >= 7.0. You run: ' . phpversion(), - 'enabled' => version_compare(phpversion(), '7.0', '>=') + 'descr' => 'PHP Version >= 7.2. You run: ' . phpversion(), + 'enabled' => version_compare(phpversion(), '7.2', '>=') ]; foreach ($functionchecks as $func => $descr) { $funcmatrix[] = ['descr' => $descr[1], 'required' => $descr[0], 'enabled' => function_exists($func)];