Skip to content

Commit

Permalink
Merge branch 'master' into update-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Jul 29, 2019
2 parents cf3a000 + 5b9e99b commit e5134e6
Show file tree
Hide file tree
Showing 4 changed files with 9 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
1 change: 1 addition & 0 deletions tests/Ackintosh/GaneshaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public function disable()

/**
* @test
* @requires PHP 7.0
*/
public function reset()
{
Expand Down

0 comments on commit e5134e6

Please sign in to comment.