8000 minor #20002 [HttpFoundation] Enable memcached tests with the latest … · symfony/symfony@f7fc01d · GitHub
[go: up one dir, main page]

Skip to content

Commit f7fc01d

Browse files
committed
minor #20002 [HttpFoundation] Enable memcached tests with the latest memcached extension (jakzal)
This PR was merged into the 2.7 branch. Discussion ---------- [HttpFoundation] Enable memcached tests with the latest memcached extension | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - The check was introduced because of #9797. The issue is now fixed in the memcached extension, but only for the upcoming 3.0 release (for PHP7). I've tested it with the latest memcached extension built from source and PHP 7.0.8. Commits ------- b482fb7 [HttpFoundation] Enable memcached tests with the latest memcached extension
2 parents ca0fdf8 + b482fb7 commit f7fc01d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ protected function setUp()
3737

3838
parent::setUp();
3939

40-
if (version_compare(phpversion('memcached'), '2.2.0', '>=')) {
41-
$this->markTestSkipped('Tests can only be run with memcached extension 2.1.0 or lower');
40+
if (version_compare(phpversion('memcached'), '2.2.0', '>=') && version_compare(phpversion('memcached'), '3.0.0b1', '<')) {
41+
$this->markTestSkipped('Tests can only be run with memcached extension 2.1.0 or lower, or 3.0.0b1 or higher');
4242
}
4343

4444
$this->memcached = $this->getMock('Memcached');

0 commit comments

Comments
 (0)
0