PHP Class Alcaeus\MongoDbAdapter\Tests\TestCase

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: alcaeus/mongo-php-adapter

Méthodes protégées

Méthode Description
checkFailPoint ( )
configureFailPoint ( $failPoint, $mode, $data = [] )
failMaxTimeMS ( )
getCheckClient ( ) : MongoDB\Client
getCheckDatabase ( ) : MongoDB\Database
getClient ( array | null $options = null, $uri = 'mongodb://localhost' ) : MongoClient
getCollection ( string $name = 'test', MongoDB $database = null ) : MongoCollection
getDatabase ( MongoClient $client = null ) : MongoDB
getGridFS ( string $prefix = 'fs', MongoDB $database = null ) : MongoGridFS
prepareData ( ) : MongoCollection
skipTestIf ( boolean $condition )
skipTestUnless ( boolean $condition )
tearDown ( )

Method Details

checkFailPoint() protected méthode

protected checkFailPoint ( )

configureFailPoint() protected méthode

protected configureFailPoint ( $failPoint, $mode, $data = [] )

failMaxTimeMS() protected méthode

protected failMaxTimeMS ( )

getCheckClient() protected méthode

protected getCheckClient ( ) : MongoDB\Client
Résultat MongoDB\Client

getCheckDatabase() protected méthode

protected getCheckDatabase ( ) : MongoDB\Database
Résultat MongoDB\Database

getClient() protected méthode

protected getClient ( array | null $options = null, $uri = 'mongodb://localhost' ) : MongoClient
$options array | null
Résultat MongoClient

getCollection() protected méthode

protected getCollection ( string $name = 'test', MongoDB $database = null ) : MongoCollection
$name string
$database MongoDB
Résultat MongoCollection

getDatabase() protected méthode

protected getDatabase ( MongoClient $client = null ) : MongoDB
$client MongoClient
Résultat MongoDB

getGridFS() protected méthode

protected getGridFS ( string $prefix = 'fs', MongoDB $database = null ) : MongoGridFS
$prefix string
$database MongoDB
Résultat MongoGridFS

prepareData() protected méthode

protected prepareData ( ) : MongoCollection
Résultat MongoCollection

skipTestIf() protected méthode

protected skipTestIf ( boolean $condition )
$condition boolean

skipTestUnless() protected méthode

protected skipTestUnless ( boolean $condition )
$condition boolean

tearDown() protected méthode

protected tearDown ( )