skip test if php 5.3
This commit is contained in:
parent
b7b107b08a
commit
bf92a40171
@ -458,7 +458,10 @@ class EntityGeneratorTest extends \Doctrine\Tests\OrmTestCase
|
||||
*/
|
||||
public function testTraitPropertiesAndMethodsAreNotDuplicated()
|
||||
{
|
||||
if (PHP_VERSION_ID >= 50400) {
|
||||
if (PHP_VERSION_ID < 50400) {
|
||||
$this->markTestSkipped('Traits are not available before php 5.4.');
|
||||
}
|
||||
|
||||
$cmf = new ClassMetadataFactory();
|
||||
$em = $this->_getTestEntityManager();
|
||||
$cmf->setEntityManager($em);
|
||||
@ -479,7 +482,6 @@ class EntityGeneratorTest extends \Doctrine\Tests\OrmTestCase
|
||||
$this->assertSame($reflClass->hasMethod('setAddress'), false);
|
||||
$this->assertSame($reflClass->hasMethod('getAddress'), false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
|
Loading…
Reference in New Issue
Block a user