File tree 4 files changed +0
-23
lines changed
Messenger/Tests/Transport/Doctrine
4 files changed +0
-23
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 ;
15
14
use Psr \Cache \CacheItemPoolInterface ;
16
15
use Symfony \Component \Cache \Adapter \PdoAdapter ;
17
16
use Symfony \Component \Cache \Tests \Traits \PdoPruneableTrait ;
@@ -31,10 +30,6 @@ public static function setUpBeforeClass(): void
31
30
self ::markTestSkipped ('Extension pdo_sqlite required. ' );
32
31
}
33
32
34
- if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35
- self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36
- }
37
-
38
33
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_cache ' );
39
34
40
35
$ pool = new PdoAdapter ('sqlite: ' .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 ;
16
15
use Symfony \Component \Lock \PersistingStoreInterface ;
17
16
use Symfony \Component \Lock \Store \PdoStore ;
18
17
@@ -31,10 +30,6 @@ public static function setUpBeforeClass(): void
31
30
{
32
31
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_lock ' );
33
32
34
- if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35
- self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36
- }
37
-
38
33
$ store = new PdoStore (DriverManager::getConnection (['driver ' => 'pdo_sqlite ' , 'path ' => self ::$ dbFile ]));
39
34
$ store ->createTable ();
40
35
}
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 ;
15
14
use Symfony \Component \Lock \Key ;
16
15
use Symfony \Component \Lock \PersistingStoreInterface ;
17
16
use Symfony \Component \Lock \Store \PdoStore ;
@@ -31,10 +30,6 @@ public static function setUpBeforeClass(): void
31
30
{
32
31
self ::$ dbFile = tempnam (sys_get_temp_dir (), 'sf_sqlite_lock ' );
33
32
34
- if (\PHP_VERSION_ID >= 80000 && class_exists (Version::class)) {
35
- self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
36
- }
37
-
38
33
$ store = new PdoStore ('sqlite: ' .self ::$ dbFile );
39
34
$ store ->createTable ();
40
35
}
Original file line number Diff line number Diff line change 14
14
use Doctrine \DBAL \Driver \Result as DriverResult ;
15
15
use Doctrine \DBAL \DriverManager ;
16
16
use Doctrine \DBAL \Result ;
17
- use Doctrine \DBAL \Version ;
18
17
use PHPUnit \Framework \TestCase ;
19
18
use Symfony \Component \Messenger \Tests \Fixtures \DummyMessage ;
20
19
use Symfony \Component \Messenger \Transport \Doctrine \Connection ;
@@ -31,13 +30,6 @@ class DoctrineIntegrationTest extends TestCase
31
30
/** @var string */
32
31
private $ sqliteFile ;
33
32
34
- public static function setUpBeforeClass (): void
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
- }
40
-
41
33
protected function setUp (): void
42
34
{
43
35
$ this ->sqliteFile = sys_get_temp_dir ().'/symfony.messenger.sqlite ' ;
You can’t perform that action at this time.
0 commit comments