File tree 7 files changed +39
-1
lines changed
Bundle/SecurityBundle/Tests/Functional
7 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,13 @@ class EntityTypeTest extends BaseTypeTest
61
61
62
62
protected static $ supportedFeatureSetVersion = 304 ;
63
63
64
+ public static function setUpBeforeClass ()
65
+ {
66
+ if (\PHP_VERSION_ID >= 80000 ) {
67
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
68
+ }
69
+ }
70
+
64
71
protected function setUp ()
65
72
{
66
73
$ this ->em = DoctrineTestHelper::createTestEntityManager ();
Original file line number Diff line number Diff line change 23
23
24
24
class EntityUserProviderTest extends TestCase
25
25
{
26
+ public static function setUpBeforeClass ()
27
+ {
28
+ if (\PHP_VERSION_ID >= 80000 ) {
29
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
30
+ }
31
+ }
32
+
26
33
public function testRefreshUserGetsUserByPrimaryKey ()
27
34
{
28
35
$ em = DoctrineTestHelper::createTestEntityManager ();
Original file line number Diff line number Diff line change @@ -63,6 +63,13 @@ class UniqueEntityValidatorTest extends Constra
10000
intValidatorTestCase
63
63
64
64
protected $ repositoryFactory ;
65
65
66
+ public static function setUpBeforeClass ()
67
+ {
68
+ if (\PHP_VERSION_ID >= 80000 ) {
69
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
70
+ }
71
+ }
72
+
66
73
protected function setUp ()
67
74
{
68
75
$ this ->repositoryFactory = new TestRepositoryFactory ();
Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ class SetAclCommandTest extends AbstractWebTestCase
40
40
const OBJECT_CLASS = 'Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\AclBundle\Entity\Car ' ;
41
41
const SECURITY_CLASS = 'Symfony\Component\Security\Core\User\User ' ;
42
42
43
+ public static function setUpBeforeClass ()
44
+ {
45
+ if (\PHP_VERSION_ID >= 80000 ) {
46
+ self ::markTestSkipped ('Doctrine DBAL 2.x is incompatible with PHP 8. ' );
47
+ }
48
+ }
49
+
43
50
public function testSetAclUser ()
44
51
{
45
52
$ objectId = 1 ;
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 \Common \Version ;
14
15
use Doctrine \DBAL \DriverManager ;
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()
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 (DriverManager::getConnection (['driver ' => 'pdo_sqlite ' , 'path ' => self ::$ dbFile ]));
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Cache \Tests \Simple ;
13
13
14
+ use Doctrine \Common \Version ;
14
15
use Doctrine \DBAL \DriverManager ;
15
16
use Symfony \Component \Cache \Simple \PdoCache ;
16
17
use Symfony \Component \Cache \Tests \Traits \PdoPruneableTrait ;
@@ -30,6 +31,10 @@ public static function setUpBeforeClass()
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 PdoCache (DriverManager::getConnection (['driver ' => 'pdo_sqlite ' , 'path ' => self ::$ dbFile ]));
Original file line number Diff line number Diff line change 29
29
"require-dev" : {
30
30
"cache/integration-tests" : " dev-master" ,
31
31
"doctrine/cache" : " ~1.6" ,
32
- "doctrine/dbal" : " ~2.4" ,
32
+ "doctrine/dbal" : " ~2.4|~3.0 " ,
33
33
"predis/predis" : " ~1.0"
34
34
},
35
35
"conflict" : {
You can’t perform that action at this time.
0 commit comments