[HttpFoundation] fixed the issue described in #9480
This commit is contained in:
parent
b76ac2f865
commit
7d35ce3584
@ -174,6 +174,8 @@ class MongoDbSessionHandlerTest extends \PHPUnit_Framework_TestCase
|
||||
$method = new \ReflectionMethod($this->storage, 'getMongo');
|
||||
$method->setAccessible(true);
|
||||
|
||||
$this->assertInstanceOf('\Mongo', $method->invoke($this->storage));
|
||||
$mongoClass = (version_compare(phpversion('mongo'), '1.3.0', '<')) ? '\Mongo' : '\MongoClient';
|
||||
|
||||
$this->assertInstanceOf($mongoClass, $method->invoke($this->storage));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user