1
0
mirror of synced 2025-03-03 11:23:21 +03:00

DDC-2704 - trying to get all reflection properties from an unitialized class metadata instance will result in a failure

This commit is contained in:
Marco Pivetta 2015-01-20 14:54:51 +01:00
parent 0a3d6966d6
commit 4e08c99b86

View File

@ -1125,6 +1125,18 @@ class ClassMetadataTest extends \Doctrine\Tests\OrmTestCase
$this->assertInstanceOf(__NAMESPACE__ . '\\MyArrayObjectEntity', $classMetadata->newInstance()); $this->assertInstanceOf(__NAMESPACE__ . '\\MyArrayObjectEntity', $classMetadata->newInstance());
} }
/**
* @group DDC-2704
*/
public function testGetAllReflectionPropertiesFailsOnNonInitializedMetadata()
{
$classMetadata = new ClassMetadata(__NAMESPACE__ . '\\MyArrayObjectEntity');
$this->setExpectedException('RuntimeException');
$classMetadata->getAllReflectionProperties();
}
} }
/** /**