Removing conditionals checking for PHP 5.4 support
This commit is contained in:
parent
541e7bdf72
commit
9024c04c72
@ -213,15 +213,11 @@ class AnnotationDriverTest extends AbstractMappingDriverTest
|
||||
|
||||
$this->setExpectedException('Doctrine\Common\Annotations\AnnotationException',
|
||||
'[Enum Error] Attribute "fetch" of @Doctrine\ORM\Mapping\OneToMany declared on property Doctrine\Tests\ORM\Mapping\InvalidFetchOption::$collection accept only [LAZY, EAGER, EXTRA_LAZY], but got eager.');
|
||||
$cm = $factory->getMetadataFor('Doctrine\Tests\ORM\Mapping\InvalidFetchOption');
|
||||
$factory->getMetadataFor('Doctrine\Tests\ORM\Mapping\InvalidFetchOption');
|
||||
}
|
||||
|
||||
public function testAttributeOverridesMappingWithTrait()
|
||||
{
|
||||
if (!version_compare(PHP_VERSION, '5.4.0', '>=')) {
|
||||
$this->markTestSkipped('This test is only for 5.4+.');
|
||||
}
|
||||
|
||||
$factory = $this->createClassMetadataFactory();
|
||||
|
||||
$metadataWithoutOverride = $factory->getMetadataFor('Doctrine\Tests\Models\DDC1872\DDC1872ExampleEntityWithoutOverride');
|
||||
|
@ -704,10 +704,6 @@ class EntityGeneratorTest extends OrmTestCase
|
||||
*/
|
||||
public function testTraitPropertiesAndMethodsAreNotDuplicated()
|
||||
{
|
||||
if (PHP_VERSION_ID < 50400) {
|
||||
$this->markTestSkipped('Traits are not available before php 5.4.');
|
||||
}
|
||||
|
||||
$cmf = new ClassMetadataFactory();
|
||||
$em = $this->_getTestEntityManager();
|
||||
$cmf->setEntityManager($em);
|
||||
@ -734,10 +730,6 @@ class EntityGeneratorTest extends OrmTestCase
|
||||
*/
|
||||
public function testTraitPropertiesAndMethodsAreNotDuplicatedInChildClasses()
|
||||
{
|
||||
if (PHP_VERSION_ID < 50400) {
|
||||
$this->markTestSkipped('Traits are not available before php 5.4.');
|
||||
}
|
||||
|
||||
$cmf = new ClassMetadataFactory();
|
||||
$em = $this->_getTestEntityManager();
|
||||
$cmf->setEntityManager($em);
|
||||
|
Loading…
x
Reference in New Issue
Block a user