Skip to content

Commit

Permalink
Merge pull request #1847 from caciobanu/update-tests
Browse files Browse the repository at this point in the history
[2.0] Test update: ODM no longer supports PHP < 7.2
  • Loading branch information
alcaeus committed Aug 10, 2018
2 parents 5e5e1fc + 060f45c commit a4b3c82
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
use Doctrine\ODM\MongoDB\Configuration;
use Doctrine\ODM\MongoDB\PersistentCollection\DefaultPersistentCollectionGenerator;
use Doctrine\ODM\MongoDB\Tests\BaseTest;
use const PHP_VERSION_ID;
use function sprintf;

/**
* Tests aims to check if classes generated for various PHP versions are correct (i.e. parses).
Expand Down Expand Up @@ -43,10 +41,6 @@ public function testWithReturnType()

public function testWithNullableReturnType()
{
if (PHP_VERSION_ID < 70100) {
$this->markTestSkipped(sprintf('%s requires at least PHP 7.1', __METHOD__));
}

$class = $this->generator->loadClass(CollWithNullableReturnType::class, Configuration::AUTOGENERATE_EVAL);
$coll = new $class(new CollWithNullableReturnType(), $this->dm, $this->uow);
$this->assertInstanceOf(CollWithNullableReturnType::class, $coll);
Expand Down

0 comments on commit a4b3c82

Please sign in to comment.