DDC-2704 - trying to get all reflection properties from an unitialized class metadata instance will result in a failure
This commit is contained in:
parent
0a3d6966d6
commit
4e08c99b86
@ -1125,6 +1125,18 @@ class ClassMetadataTest extends \Doctrine\Tests\OrmTestCase
|
||||
|
||||
$this->assertInstanceOf(__NAMESPACE__ . '\\MyArrayObjectEntity', $classMetadata->newInstance());
|
||||
}
|
||||
|
||||
/**
|
||||
* @group DDC-2704
|
||||
*/
|
||||
public function testGetAllReflectionPropertiesFailsOnNonInitializedMetadata()
|
||||
{
|
||||
$classMetadata = new ClassMetadata(__NAMESPACE__ . '\\MyArrayObjectEntity');
|
||||
|
||||
$this->setExpectedException('RuntimeException');
|
||||
|
||||
$classMetadata->getAllReflectionProperties();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user