Skip to content

Commit cb0e39e

Browse files
authored
Redesign integration test matrix to test every minor version without --prefer-lowest (#152)
Replace --prefer-lowest with explicit X.Y.* constraints per minor version, eliminating PHP version splits and reducing breakage from transitive dependency changes. Each matrix file now tests the latest patch of one specific minor version. Changes: - Remove --prefer-lowest second pass from run-integration.sh - Add --rm to docker-compose run in run-in-docker.sh to fix orphan containers - Fix PHP 8.4 implicit nullable deprecation in MigrationsExtension.phpt - dbal/doctrine: 6 files -> 25 files (2.5-4.4, one per minor) - dbal/nextras: 6 files -> 8 files (1.0-5.0) - dbal/dibi: 4 files -> 8 files (3.0-5.1) - dbal/nette: 3 files -> 4 files (2.4-3.2) - nette-di: 6 files -> 4 files (2.4-3.2) - symfony-bundle: 8 files -> 18 files (4.4, 5.0-5.4, 6.0-6.4, 7.0-7.4, 8.0)
1 parent 2e36873 commit cb0e39e

File tree

94 files changed

+381
-304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+381
-304
lines changed

tests/cases/integration/nette-di/MigrationsExtension.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class MigrationsExtensionTest extends TestCase
113113
}
114114

115115

116-
protected function createContainer(string $config, array $dynamicParameters = null): Nette\DI\Container
116+
protected function createContainer(string $config, ?array $dynamicParameters = null): Nette\DI\Container
117117
{
118118
$options = parse_ini_file(__DIR__ . '/../../../drivers.ini', true)['mysql'];
119119

tests/matrix/dbal/dibi-3.0.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
PHP_VERSION_MIN="50400"
2+
PHP_VERSION_MIN="70100"
33
PHP_VERSION_MAX="70399"
4-
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:~3.0"
4+
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:3.0.*"
55
DBAL="dibi"

tests/matrix/dbal/dibi-3.1.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
PHP_VERSION_MIN="70100"
3+
PHP_VERSION_MAX="70399"
4+
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:3.1.*"
5+
DBAL="dibi"

tests/matrix/dbal/dibi-3.2.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
PHP_VERSION_MIN="70100"
3+
PHP_VERSION_MAX="70399"
4+
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:3.2.*"
5+
DBAL="dibi"

tests/matrix/dbal/dibi-4.0-php-7.1-to-8.0.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/matrix/dbal/dibi-4.0-php-8.1.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/matrix/dbal/dibi-4.0.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
PHP_VERSION_MIN="70100"
3+
PHP_VERSION_MAX="80099"
4+
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:4.0.*"
5+
DBAL="dibi"

tests/matrix/dbal/dibi-4.1.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
PHP_VERSION_MIN="70100"
3+
PHP_VERSION_MAX="80099"
4+
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:4.1.*"
5+
DBAL="dibi"

tests/matrix/dbal/dibi-4.2.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
PHP_VERSION_MIN="70200"
3+
PHP_VERSION_MAX="80499"
4+
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:4.2.*"
5+
DBAL="dibi"

tests/matrix/dbal/dibi-5.0.sh

100644100755
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
22
PHP_VERSION_MIN="80000"
33
PHP_VERSION_MAX="80499"
4-
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:~5.0"
5-
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.4"
4+
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:5.0.*"
65
DBAL="dibi"

0 commit comments

Comments
 (0)