File tree 7 files changed +33
-1
lines changed
Messenger/Tests/Transport/Doctrine
7 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Cache \Tests \Adapter ;
13
13
14
+ use Doctrine \DBAL \Version ;
14
15
use Psr \Cache \CacheItemPoolInterface ;
15
16
use Symfony \Component \Cache \Adapter \PdoAdapter ;
16
17
use Symfony \Component \Cache \Tests \Traits \PdoPruneableTrait ;
@@ -30,6 +31,10 @@ public static function setUpBeforeClass(): void
30
31
self ::markTestSkipped ('Extension pdo_sqlite required. ' );
31
32
}
32
33
34
+ if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36
+ }
37
+
33
38
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_cache ' );
34
39
35
40
$ pool = new PdoAdapter ('sqlite: ' .self ::$ dbFile );
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 ]));
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
14
use Doctrine \DBAL \DriverManager ;
15
+ use Doctrine \DBAL \Version ;
15
16
use Symfony \Component \Lock \PersistingStoreInterface ;
6D40
16
17
use Symfony \Component \Lock \Store \PdoStore ;
17
18
@@ -30,6 +31,10 @@ public static function setUpBeforeClass(): void
30
31
{
31
32
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_lock ' );
32
33
34
+ if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36
+ }
37
+
33
38
$ store = new PdoStore (DriverManager::getConnection (['driver ' => 'pdo_sqlite ' , 'path ' => self ::$ dbFile ]));
34
39
$ store ->createTable ();
35
40
}
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
+ use Doctrine \DBAL \Version ;
14
15
use Symfony \Component \Lock \Key ;
15
16
use Symfony \Component \Lock \PersistingStoreInterface ;
16
17
use Symfony \Component \Lock \Store \PdoStore ;
@@ -30,6 +31,10 @@ public static function setUpBeforeClass(): void
30
31
{
31
32
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_lock ' );
32
33
34
+ if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36
+ }
37
+
33
38
$ store = new PdoStore ('sqlite: ' .self ::$ dbFile );
34
39
$ store ->createTable ();
35
40
}
Original file line number Diff line number Diff line change 20
20
"psr/log" : " ~1.0"
21
21
},
22
22
"require-dev" : {
23
- "doctrine/dbal" : " ~ 2.5" ,
23
+ "doctrine/dbal" : " ^ 2.5|^3.0 " ,
24
24
"predis/predis" : " ~1.0"
25
25
},
26
26
"conflict" : {
Original file line number Diff line number Diff line change @@ -28,6 +28,13 @@ class DoctrineIntegrationTest extends TestCase
28
28
/** @var string */
29
29
private $ sqliteFile ;
30
30
31
+ public static function setUpBeforeClass (): void
32
+ {
33
+ if (\PHP_VERSION_ID >= 80000 ) {
34
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
35
+ }
36
+ }
37
+
31
38
protected function setUp (): void
32
39
{
33
40
$ this ->sqliteFile = sys_get_temp_dir ().'/symfony.messenger.sqlite ' ;
You can’t perform that action at this time.
0 commit comments