Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Sokil
Mongo
CollectionTest
tearDown
Sokil\Mongo\CollectionTest::tearDown PHP Method
CollectionTest Class Documentation
Show file
Open project: sokil/php-mongo
tearDown()
public
method
public
tearDown
( )
public function tearDown() { if ($this->collection) { $this->collection->delete(); } }
CollectionTest
hasDocumentDataProvider
setUp
tearDown
testCappedCollectionInsert
testCreateDocument_IsNewDocumentStoredToPoolAfterSave
testDeleteCollection_ExceptionOnCollectionDeleteError
testDeleteCollection_UnexistedCollection
testDeleteDocument_ErrorDeletingDocument
testDeleteDocuments_ErrorDeletingDocuments
testDeleteDocuments_ExpressionAsArray
testDeleteDocuments_ExpressionAsCallable
testDeleteDocuments_ExpressionAsObject
testDeleteDocuments_WrongExpressionSpecified
testDeleteIndex
testEnableDocumentPool
testEnsureFulltextIndex
testEnsureIndex
testEnsureSparseIndex
testEnsureTTLIndex
testEnsureUniqueIndex
testFind
testGetDistinct_ExpressionArray
testGetDistinct_ExpressionCallable
testGetDistinct_ExpressionObject
testGetDistinct_NoExpression
testGetDocument
testGetDocumentByReference
testGetDocumentByStringId
testGetDocumentDirectly
testGetDocument_ConfigureCursor_DocumentPoolMustBeOmitted
testGetDocument_ConfigureCursor_ReturnAsArray
testGetDocument_ConfigureCursor_getAsArray
testGetDocument_WrongId
testGetDocumentsFromDocumentPool
testGetDocuments_AllFromPool
testGetDocuments_OneFromPoolOtherDirectly
testGetDocuments_UnexistedIdsSpecified
testGetOption
testGetOptions
testGetResultSet
testGetStoredDocumentInstanceFromArray
testGetStoredDocumentInstanceFromArray_DocumentNotStored
testHasDocument
testInitIndexes
testInitIndexes_KeysNotSpecified
testInsertMultiple_Acknowledged
testInsertMultiple_ErrorInsertingWithAcknowledgeWrite
testInsertMultiple_ErrorInsertingWithUnacknowledgeWrite
testInsertMultiple_Unacknovledged
testInsertMultiple_ValidateError
testInsert_Acknowledged
testInsert_Acknowledged_Error
testInsert_Unacknowledged
testInsert_Unacknowledged_Error
testIsDocumentInDocumentPool
testIsVersioningEnabled
testOverrideDefaultDocumentClassByCallable
testOverrideDefaultDocumentClassByString
testReadNearest
testReadPrimaryOnly
testReadPrimaryPreferred
testReadSecondaryOnly
testReadSecondaryPreferred
testSaveInvalidNewDocument
testSaveValidNewDocument
testSetMajorityWriteConcern
testSetUnacknowledgedWriteConcern
testSetWriteConcern
testSetWriteConcern_Error
testStats
testStoreDocumentInPool_DocumentAlreadyStored
testUpdateAll_ErrorWithUnacknowledgedWriteConcern
testUpdateAll_ErrorWithWriteConcern
testUpdateAll_WithAcknowledgedWriteConcern
testUpdateAll_WithUnacknowledgedWriteConcern
testUpdateExistedDocument
testUpdateMultiple_ErrorWithUnacknowledgedWriteConcern
testUpdateMultiple_ErrorWithWriteConcern
testUpdateMultiple_WithAcknowledgedWriteConcern
testUpdateMultiple_WithUnacknowledgedWriteConcern
testUpdate_ExpressionIsArray
testUpdate_ExpressionIsCallable
testUpdate_ExpressionIsExpressionObject
testUpdate_UpdateData
testUpdate_UpdateDataIsOperatorArray
testUpdate_UpdateDataIsOperatorCallable
testUpdate_UpdateDataIsOperatorObject
testValidateOnExistedCollection
testValidateOnNotExistedCollection