PHP Class Bravo3\Orm\Tests\AbstractOrmTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: bravo3/orm

Public Methods

Method Description
entityManagerDataProvider ( ) : EntityManager[] Gets an array of EntityManager's with different drivers

Protected Methods

Method Description
exists ( EntityManager $em, string $table, string $id ) : boolean Does a native driver lookup to see if an entity key exists
getEntityKey ( EntityManager $em, $table, $id )
getEntityManager ( ) : EntityManager Gets the default EntityManager (RedisDriver)
getEntityRefKey ( EntityManager $em, $table, $id )
getFsDriver ( $name = 'fs-db' )
getIndexKey ( EntityManager $em, $table, $index, $key )
getRawRedisClient ( ) : Client
getRedisDriver ( )
getRelKey ( EntityManager $em, $from, $to, $id, $property, RelationshipType $type )
getTarDriver ( )
getZipDriver ( )

Private Methods

Method Description
delTree ( $dir )
dirExists ( $fn )
getPredisParams ( )

Method Details

entityManagerDataProvider() public method

Gets an array of EntityManager's with different drivers
public entityManagerDataProvider ( ) : EntityManager[]
return Bravo3\Orm\Services\EntityManager[]

exists() protected method

Does a native driver lookup to see if an entity key exists
protected exists ( EntityManager $em, string $table, string $id ) : boolean
$em Bravo3\Orm\Services\EntityManager
$table string
$id string
return boolean

getEntityKey() protected method

protected getEntityKey ( EntityManager $em, $table, $id )
$em Bravo3\Orm\Services\EntityManager

getEntityManager() protected method

Gets the default EntityManager (RedisDriver)
Deprecation: Use the entityManagerDataProvider instead
protected getEntityManager ( ) : EntityManager
return Bravo3\Orm\Services\EntityManager

getEntityRefKey() protected method

protected getEntityRefKey ( EntityManager $em, $table, $id )
$em Bravo3\Orm\Services\EntityManager

getFsDriver() protected method

protected getFsDriver ( $name = 'fs-db' )

getIndexKey() protected method

protected getIndexKey ( EntityManager $em, $table, $index, $key )
$em Bravo3\Orm\Services\EntityManager

getRawRedisClient() protected method

Deprecation: Stop using this, use the driver directly instead
protected getRawRedisClient ( ) : Client
return Predis\Client

getRedisDriver() protected method

protected getRedisDriver ( )

getRelKey() protected method

protected getRelKey ( EntityManager $em, $from, $to, $id, $property, RelationshipType $type )
$em Bravo3\Orm\Services\EntityManager
$type Bravo3\Orm\Enum\RelationshipType

getTarDriver() protected method

protected getTarDriver ( )

getZipDriver() protected method

protected getZipDriver ( )