/**
* @author Markus Bachmann <markus.bachmann@bachi.biz>
* @group time-sensitive
+ * @group legacy
*/
class MongoDbSessionHandlerTest extends TestCase
{
{
parent::setUp();
- if (extension_loaded('mongodb')) {
+ if (\extension_loaded('mongodb')) {
if (!class_exists('MongoDB\Client')) {
$this->markTestSkipped('The mongodb/mongodb package is required.');
}
- } elseif (!extension_loaded('mongo')) {
+ } elseif (!\extension_loaded('mongo')) {
$this->markTestSkipped('The Mongo or MongoDB extension is required.');
}
->with($this->options['database'], $this->options['collection'])
->will($this->returnValue($collection));
- $methodName = phpversion('mongodb') ? 'deleteOne' : 'remove';
+ $methodName = phpversion('mongodb') ? 'deleteMany' : 'remove';
$collection->expects($this->once())
->method($methodName)