Sokil\Mongo\CollectionTest::testDeleteCollection_ExceptionOnCollectionDeleteError PHP Method

testDeleteCollection_ExceptionOnCollectionDeleteError() public method

    public function testDeleteCollection_ExceptionOnCollectionDeleteError()
    {
        $this->collectionMock = $this->getMock('\\MongoCollection', array('drop'), array($this->database->getMongoDB(), 'phpmongo_test_collection'));
        $this->collectionMock->expects($this->once())->method('drop')->will($this->returnValue(array('ok' => (double) 0, 'errmsg' => 'Some strange error')));
        $collection = new Collection($this->database, $this->collectionMock);
        $collection->delete();
    }
CollectionTest