PHP Class Doctrine\Tests\OxmTestCase

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: doctrine/oxm

Méthodes protégées

Méthode 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

Méthode Description
getSharedMetadataCacheImpl ( )

Method Details

_getClassMetadataMock() protected méthode

protected _getClassMetadataMock ( string $entityName ) : ClassMetadataInfo
$entityName string
Résultat Doctrine\OXM\Mapping\ClassMetadataInfo

_getMarshaller() protected méthode

protected _getMarshaller ( $paths ) : Doctrine\OXM\Marshaller\Marshaller
$paths
Résultat Doctrine\OXM\Marshaller\Marshaller

_getTestXmlEntityManager() protected méthode

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
Résultat Doctrine\OXM\XmlEntityManager