minor #9481 [HttpFoundation] fixed the issue described in #9480 (andremaha)

This PR was merged into the master branch.

Discussion
----------

[HttpFoundation] fixed the issue described in #9480

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9480
| License       | MIT
| Doc PR        | -

Commits
-------

7d35ce3 [HttpFoundation] fixed the issue described in #9480
This commit is contained in:
Fabien Potencier 2013-11-22 18:25:24 +01:00
commit 572c3bb900

View File

@ -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));
}
}