PHP Class Mongolid\Cursor\CursorTest

Inheritance: extends TestCas\TestCase
Afficher le fichier Open project: leroy-merlin-br/mongolid

Méthodes publiques

Méthode Description
tearDown ( )
testShouldCountDocuments ( )
testShouldGetCurrent ( )
testShouldGetCurrentUsingActiveRecordClasses ( )
testShouldGetFirst ( )
testShouldGetFirstWhenEmpty ( )
testShouldImplementKeyMethodFromIterator ( )
testShouldImplementNextMethodFromIterator ( )
testShouldImplementValidMethodFromIterator ( )
testShouldLimitDocumentQuantity ( )
testShouldRefreshTheCursor ( )
testShouldReturnAllResults ( )
testShouldReturnResultsToArray ( )
testShouldRewind ( )
testShouldRewindACursorThatHasAlreadyBeenInitialized ( )
testShouldSerializeAnActiveCursor ( )
testShouldSetNoCursorTimeoutToTrue ( )
testShouldSkipDocuments ( )
testShouldSortDocumentsOfCursor ( )
testShouldWrapMongoDriverCursorWithIteratoriterator ( )

Méthodes protégées

Méthode Description
getCursor ( $entitySchema = null, $collection = null, $command = 'find', $params = [[]], $driverCursor = null )
getDriverCollection ( ) Since the MongoDB\Collection is not serializable. This method will emulate an unserializable collection from mongoDb driver.

Method Details

getCursor() protected méthode

protected getCursor ( $entitySchema = null, $collection = null, $command = 'find', $params = [[]], $driverCursor = null )

getDriverCollection() protected méthode

Since the MongoDB\Collection is not serializable. This method will emulate an unserializable collection from mongoDb driver.
protected getDriverCollection ( )

tearDown() public méthode

public tearDown ( )

testShouldCountDocuments() public méthode

testShouldGetCurrent() public méthode

testShouldGetCurrentUsingActiveRecordClasses() public méthode

testShouldGetFirst() public méthode

public testShouldGetFirst ( )

testShouldGetFirstWhenEmpty() public méthode

testShouldImplementKeyMethodFromIterator() public méthode

testShouldImplementNextMethodFromIterator() public méthode

testShouldImplementValidMethodFromIterator() public méthode

testShouldLimitDocumentQuantity() public méthode

testShouldRefreshTheCursor() public méthode

testShouldReturnAllResults() public méthode

testShouldReturnResultsToArray() public méthode

testShouldRewind() public méthode

public testShouldRewind ( )

testShouldRewindACursorThatHasAlreadyBeenInitialized() public méthode

testShouldSerializeAnActiveCursor() public méthode

testShouldSetNoCursorTimeoutToTrue() public méthode

testShouldSkipDocuments() public méthode

testShouldSortDocumentsOfCursor() public méthode

testShouldWrapMongoDriverCursorWithIteratoriterator() public méthode