Skip to content

Commit

Permalink
Merge 2c6e53a into b30d538
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Jul 29, 2019
2 parents b30d538 + 2c6e53a commit 561f8f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
- mongodb

before_install:
- ./install_memcached.sh
- phpenv config-add .travis.php.ini

before_script:
Expand Down
4 changes: 4 additions & 0 deletions install_memcached.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Workaround for PHP5.6
if [ "$(php -v | cut -d ' ' -f 2 | head -n 1)" == '5.6.40' ]; then
printf "\n" | pecl install memcached-2.2.0
fi
3 changes: 3 additions & 0 deletions tests/Ackintosh/Ganesha/Storage/Adapter/MemcachedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public function loadStatusThrowsException()

/**
* @test
* @requires PHP 7.0
*/
public function resetWillDoNothingIfNoDataExists()
{
Expand All @@ -260,6 +261,7 @@ public function resetWillDoNothingIfNoDataExists()

/**
* @test
* @requires PHP 7.0
* @expectedException \RuntimeException
* @expectedExceptionMessage Couldn't connect to memcached.
*/
Expand All @@ -278,6 +280,7 @@ public function resetThrowsExceptionWhenFailedToGetStats()

/**
* @test
* @requires PHP 7.0
* @expectedException \RuntimeException
* @expectedExceptionMessageRegExp /\Afailed to get memcached keys/
*/
Expand Down

0 comments on commit 561f8f8

Please sign in to comment.