Skip to content

Commit 6a16d29

Browse files
committed
Skip Doctrine DBAL on php 8 until we have a compatible version.
1 parent ef44187 commit 6a16d29

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

Tests/Form/Type/EntityTypeTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ class EntityTypeTest extends BaseTypeTest
6161

6262
protected static $supportedFeatureSetVersion = 304;
6363

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+
6471
protected function setUp()
6572
{
6673
$this->em = DoctrineTestHelper::createTestEntityManager();

Tests/Security/User/EntityUserProviderTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323

2424
class EntityUserProviderTest extends TestCase
2525
{
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+
2633
public function testRefreshUserGetsUserByPrimaryKey()
2734
{
2835
$em = DoctrineTestHelper::createTestEntityManager();

Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ class UniqueEntityValidatorTest extends ConstraintValidatorTestCase
6363

6464
protected $repositoryFactory;
6565

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+
6673
protected function setUp()
6774
{
6875
$this->repositoryFactory = new TestRepositoryFactory();

0 commit comments

Comments
 (0)