File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
src/Symfony/Component/Cache/Tests Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Cache \Tests \Adapter ;
13
13
14
14
use Doctrine \DBAL \DriverManager ;
15
+ use Doctrine \DBAL \Version ;
15
16
use Psr \Cache \CacheItemPoolInterface ;
16
17
use Symfony \Component \Cache \Adapter \PdoAdapter ;
17
18
use Symfony \Component \Cache \Tests \Traits \PdoPruneableTrait ;
@@ -31,6 +32,10 @@ public static function setUpBeforeClass(): void
31
32
self ::markTestSkipped ('Extension pdo_sqlite required. ' );
32
33
}
33
34
35
+ if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
36
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
37
+ }
38
+
34
39
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_cache ' );
35
40
}
36
41
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Cache \Tests \Simple ;
13
13
14
14
use Doctrine \DBAL \DriverManager ;
15
+ use Doctrine \DBAL \Version ;
15
16
use Psr \SimpleCache \CacheInterface ;
16
17
use Symfony \Component \Cache \Simple \PdoCache ;
17
18
use Symfony \Component \Cache \Tests \Traits \PdoPruneableTrait ;
@@ -32,6 +33,10 @@ public static function setUpBeforeClass(): void
32
33
self ::markTestSkipped ('Extension pdo_sqlite required. ' );
33
34
}
34
35
36
+ if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
37
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
38
+ }
39
+
35
40
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_cache ' );
36
41
37
42
$ pool = new PdoCache (DriverManager::getConnection (['driver ' => 'pdo_sqlite ' , 'path ' => self ::$ dbFile ]));
You can’t perform that action at this time.
0 commit comments