Skip to content

Commit

Permalink
Feature/for hhvm 4.44 (#9)
Browse files Browse the repository at this point in the history
* updated

* Update MemcachedCacheTest.hack
  • Loading branch information
ytake authored Feb 12, 2020
1 parent 7064d7b commit 9544ad3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
20 changes: 11 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ services:
- docker
env:
global:
- DOCKER_COMPOSE_VERSION=1.24.1
- DOCKER_COMPOSE_VERSION=1.25.1
matrix:
- HHVM_VERSION=4.25.1
- HHVM_VERSION=4.26.1
- HHVM_VERSION=4.27.1
- HHVM_VERSION=4.28.2
- HHVM_VERSION=4.29.0
- HHVM_VERSION=4.30.0
- HHVM_VERSION=4.31.0
- HHVM_VERSION=latest
- HHVM_VERSION=4.35.0
- HHVM_VERSION=4.36.0
- HHVM_VERSION=4.38.0
- HHVM_VERSION=4.39.0
- HHVM_VERSION=4.40.0
- HHVM_VERSION=4.41.0
- HHVM_VERSION=4.42.0
- HHVM_VERSION=4.43.0
- HHVM_VERSION=4.44.0
- HHVM_VERSION=latest
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
}
],
"require": {
"hhvm": "^4.25",
"hhvm": "^4.35",
"hhvm/hsl": "^4.0",
"hhvm/hsl-experimental": "^4.25",
"hhvm/hhvm-autoload": "^2.0.10"
"hhvm/hhvm-autoload": "^3.0"
},
"require-dev": {
"hhvm/hacktest": "^2.0.0",
Expand Down
7 changes: 4 additions & 3 deletions tests/Driver/MemcachedCacheTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MemcachedCacheTest extends HackTest {
$cache = new MemcachedCache();
$mc = new Memcached('mc');
$mc->addServers(array(
['memcached', 11211],
array('memcached', 11211)
));
expect($cache->fetch("qwerty"))->toBeNull();
})->toThrow(InvariantException::class);
Expand All @@ -20,10 +20,11 @@ class MemcachedCacheTest extends HackTest {
$cache = new MemcachedCache();
$mc = new Memcached('mc');
$mc->addServers(array(
['memcached', 11211],
array('memcached', 11211)
));
$cache->setMemcached($mc);
$cache->save("qwerty", new Element('testing:cache', 0));
expect($cache->fetch("qwerty"))->toBeNull();
$cache->save("qwerty", new Element('testing:cache', 5));
expect($cache->fetch("qwerty"))->toBeSame('testing:cache');
expect($cache->fetch("qwerty"))->toBeSame('testing:cache');
$cache->delete("qwerty");
Expand Down

0 comments on commit 9544ad3

Please sign in to comment.