dropCollection('customer'); parent::tearDown(); } // Tests : public function testGetCollection() { $database = $connection = $this->getConnection()->getDatabase(); $collection = $database->getCollection('customer'); $this->assertTrue($collection instanceof Collection); $this->assertTrue($collection->mongoCollection instanceof \MongoCollection); $collection2 = $database->getCollection('customer'); $this->assertTrue($collection === $collection2); $collectionRefreshed = $database->getCollection('customer', true); $this->assertFalse($collection === $collectionRefreshed); } }