From 9544ad35857c867d5be6e03f2905445b85f9be9d Mon Sep 17 00:00:00 2001 From: yuuki takezawa Date: Wed, 12 Feb 2020 19:01:38 +0900 Subject: [PATCH] Feature/for hhvm 4.44 (#9) * updated * Update MemcachedCacheTest.hack --- .travis.yml | 20 +++++++++++--------- composer.json | 4 ++-- tests/Driver/MemcachedCacheTest.hack | 7 ++++--- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 786a626..ce9fb7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/composer.json b/composer.json index 2971624..b7a516e 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/tests/Driver/MemcachedCacheTest.hack b/tests/Driver/MemcachedCacheTest.hack index cd57927..1e6c4ac 100644 --- a/tests/Driver/MemcachedCacheTest.hack +++ b/tests/Driver/MemcachedCacheTest.hack @@ -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); @@ -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");