PHP Class Doctrine\Tests\OxmTestCase

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: doctrine/oxm

Protected Methods

Method Description
_getClassMetadataMock ( string $entityName ) : ClassMetadataInfo
_getMarshaller ( $paths ) : Doctrine\OXM\Marshaller\Marshaller
_getTestXmlEntityManager ( $eventManager = null, $withSharedMetadata = true ) : XmlEntityManager Creates an EntityManager for testing purposes.

Private Methods

Method Description
getSharedMetadataCacheImpl ( )

Method Details

_getClassMetadataMock() protected method

protected _getClassMetadataMock ( string $entityName ) : ClassMetadataInfo
$entityName string
return Doctrine\OXM\Mapping\ClassMetadataInfo

_getMarshaller() protected method

protected _getMarshaller ( $paths ) : Doctrine\OXM\Marshaller\Marshaller
$paths
return Doctrine\OXM\Marshaller\Marshaller

_getTestXmlEntityManager() protected method

NOTE: The created EntityManager will have its dependant DBAL parts completely mocked out using a DriverMock, ConnectionMock, etc. These mocks can then be configured in the tests to simulate the DBAL behavior that is desired for a particular test,
protected _getTestXmlEntityManager ( $eventManager = null, $withSharedMetadata = true ) : XmlEntityManager
return Doctrine\OXM\XmlEntityManager