Skip to content

Commit

Permalink
Remove php 5.5, add 7.1 and 7.2, use container-iterop 1.2 as minimum,… (
Browse files Browse the repository at this point in the history
#8)

Remove php 5.5, add 7.1 and 7.2, use container-iterop 1.2 as minimum, upgrade phpunit
  • Loading branch information
snapshotpl authored Mar 19, 2018
1 parent e55c276 commit 6affa80
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@ language: php
cache:
directories:
- $HOME/.composer/cache
- vendor

php:
- 5.5
- 5.6
- 7
- hhvm
- 7.1
- 7.2

env:
- DEPS=lowest
- DEPS=latest

before_install:
- composer self-update
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable --no-interaction ; fi
- travis_retry composer install --no-interaction
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-stable --no-interaction --prefer-lowest ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update --prefer-stable --no-interaction ; fi

script:
- composer test
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
}
],
"require": {
"php": "^5.5 || ^7.0",
"container-interop/container-interop": "^1.0",
"php": "^5.6 || ^7.0",
"container-interop/container-interop": "^1.2",
"ocramius/proxy-manager": "^1.0 || ^2.0"
},
"require-dev": {
"phpunit/phpunit": "^4.7 || ^5.0",
"phpunit/phpunit": "^5.7.27 || ^6.5.7",
"snapshotpl/nano-container": "^1.0"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions test/LazyContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Snapshotpl\LazyContainer\Test;

use ArrayObject;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use ProxyManager\Factory\LazyLoadingValueHolderFactory;
use Snapshotpl\LazyContainer\LazyContainer;
use Snapshotpl\NanoContainer\NanoContainer;

class LazyContainerTest extends PHPUnit_Framework_TestCase
class LazyContainerTest extends TestCase
{
protected $container;
protected $decoratedContainer;
Expand Down

0 comments on commit 6affa80

Please sign in to comment.