PHP Class Alcaeus\MongoDbAdapter\Tests\TestCase

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: alcaeus/mongo-php-adapter

Protected Methods

Method 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 method

protected checkFailPoint ( )

configureFailPoint() protected method

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

failMaxTimeMS() protected method

protected failMaxTimeMS ( )

getCheckClient() protected method

protected getCheckClient ( ) : MongoDB\Client
return MongoDB\Client

getCheckDatabase() protected method

protected getCheckDatabase ( ) : MongoDB\Database
return MongoDB\Database

getClient() protected method

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

getCollection() protected method

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

getDatabase() protected method

protected getDatabase ( MongoClient $client = null ) : MongoDB
$client MongoClient
return MongoDB

getGridFS() protected method

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

prepareData() protected method

protected prepareData ( ) : MongoCollection
return MongoCollection

skipTestIf() protected method

protected skipTestIf ( boolean $condition )
$condition boolean

skipTestUnless() protected method

protected skipTestUnless ( boolean $condition )
$condition boolean

tearDown() protected method

protected tearDown ( )