Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/74'
Browse files Browse the repository at this point in the history
Close #74
  • Loading branch information
weierophinney committed May 12, 2016
2 parents e22a391 + d78934e commit 2c68def
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 15 deletions.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,28 @@ matrix:
- EXECUTE_TEST_COVERALLS=true
- PECL_INSTALL_APCU='apcu'
- PECL_INSTALL_APCU_BC='apcu_bc-beta'

# FIXME:
# there is no memcached extension available for PHP-7
# the version provided by travis is not yet ready and buggy
- TESTS_ZEND_CACHE_MEMCACHED_ENABLED=false
- php: 7
env:
- SERVICE_MANAGER_VERSION="^2.7.5"
- EVENT_MANAGER_VERSION="^2.6.2"
- PECL_INSTALL_APCU='apcu'
- PECL_INSTALL_APCU_BC='apcu_bc-beta'

# FIXME:
# there is no memcached extension available for PHP-7
# the version provided by travis is not yet ready and buggy
- TESTS_ZEND_CACHE_MEMCACHED_ENABLED=false
- php: hhvm
- php: hhvm
env:
- SERVICE_MANAGER_VERSION="^2.7.5"
- EVENT_MANAGER_VERSION="^2.6.2"
allow_failures:
- php: 7
- php: hhvm

notifications:
Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/ApcTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ApcTest extends CommonAdapterTest

public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_APC_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_APC_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_APC_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/MemcacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MemcacheTest extends CommonAdapterTest
{
public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_MEMCACHE_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_MEMCACHE_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_MEMCACHE_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/MemcachedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MemcachedTest extends CommonAdapterTest
{
public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_MEMCACHED_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_MEMCACHED_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_MEMCACHED_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/MongoDbOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MongoDbOptionsTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_MONGODB_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_MONGODB_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_MONGODB_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/MongoDbResourceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MongoDbResourceManagerTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_MONGODB_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_MONGODB_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_MONGODB_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/MongoDbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MongoDbTest extends CommonAdapterTest
{
public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_MONGODB_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_MONGODB_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_MONGODB_ENABLED to run this test');
}

Expand Down
6 changes: 3 additions & 3 deletions test/Storage/Adapter/RedisResourceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function testSetServerWithPasswordInUriShouldNotOverridePreviousResource(
*/
public function testValidPersistentId()
{
if (!getenv('TESTS_ZEND_CACHE_REDIS_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_REDIS_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_REDIS_ENABLED to run this test');
}

Expand All @@ -128,7 +128,7 @@ public function testValidPersistentId()
*/
public function testNotValidPersistentIdOptionName()
{
if (!getenv('TESTS_ZEND_CACHE_REDIS_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_REDIS_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_REDIS_ENABLED to run this test');
}

Expand Down Expand Up @@ -156,7 +156,7 @@ public function testNotValidPersistentIdOptionName()
*/
public function testGetMajorVersion()
{
if (!getenv('TESTS_ZEND_CACHE_REDIS_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_REDIS_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_REDIS_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RedisTest extends CommonAdapterTest

public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_REDIS_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_REDIS_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_REDIS_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/WinCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class WinCacheTest extends CommonAdapterTest
{
public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_WINCACHE_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_WINCACHE_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_WINCACHE_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/XCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class XCacheTest extends CommonAdapterTest

public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_XCACHE_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_XCACHE_ENABLED') != 'true') {
$this->markTestSkipped('EnableTESTS_ZEND_CACHE_XCACHE_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/ZendServerDiskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ZendServerDiskTest extends CommonAdapterTest
{
public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED to run this test');
}

Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/ZendServerShmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ZendServerShmTest extends CommonAdapterTest
{
public function setUp()
{
if (!getenv('TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED')) {
if (getenv('TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED') != 'true') {
$this->markTestSkipped('Enable TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED to run this test');
}

Expand Down

0 comments on commit 2c68def

Please sign in to comment.