Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.phpunit.result.cache
/.idea
/composer.lock
/test/tmp
Expand Down
16 changes: 5 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
dist: trusty
dist: focal
sudo: required

language: php

php:
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'

install:
- 'composer install --prefer-dist --no-suggest'

before_script:
- |
# Enable APCu for PHP 7.x
if [[ $TRAVIS_PHP_VERSION = 7.* ]]; then
yes '' | pecl install -f apcu
echo "apc.enable_cli = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
fi
# Enable APCu
yes '' | pecl install -f apcu
echo "apc.enable_cli = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

script:
- 'cd test && ../vendor/bin/phpunit -c phpunit.xml --debug'
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "smottt/layercache",
"description": "LayerCache, a PHP multi-layer caching framework",
"version": "1.1.1",
"version": "2.0.0",
"type": "library",
"keywords": ["cache"],
"homepage": "https://github.com/smottt/layercache",
Expand Down Expand Up @@ -29,9 +29,9 @@
"files": ["test/mocks.php"]
},
"require": {
"php": "~5.6|~7.0"
"php": "~7.4|~8.0"
},
"require-dev": {
"phpunit/phpunit": "~5.6"
"phpunit/phpunit": "~8.0|~9.0"
}
}
67 changes: 0 additions & 67 deletions lib/Cache/APC.php

This file was deleted.

67 changes: 0 additions & 67 deletions lib/Cache/XCache.php

This file was deleted.

1 change: 0 additions & 1 deletion test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
convertWarningsToExceptions = "true"
processIsolation = "false"
stopOnFailure = "false"
syntaxCheck = "false"
bootstrap = "scripts/boot.php"
>
<testsuites>
Expand Down
2 changes: 0 additions & 2 deletions test/scripts/boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@
if (!is_dir(LAYERCACHE_TEST_TMP_DIR)) {
mkdir(LAYERCACHE_TEST_TMP_DIR, 0777);
}

error_reporting(E_ALL & ~E_DEPRECATED);
106 changes: 0 additions & 106 deletions test/tests/Cache/APCTest.php

This file was deleted.

Loading