Skip to content

Commit 03592cf

Browse files
author
igor-chepurnoi
committed
require php 7.0 version, update tests configuration
1 parent df4b341 commit 03592cf

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
language: php
22

33
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
74
- 7.0
5+
- 7.1
86

97
# faster builds on new travis setup not using sudo
108
sudo: false
119

12-
# cache vendor dirs
10+
# cache dirs
1311
cache:
1412
directories:
1513
- $HOME/.composer/cache
16-
- vendor
1714

1815
install:
1916
- travis_retry composer self-update && composer --version
20-
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
2117
- export PATH="$HOME/.composer/vendor/bin:$PATH"
2218
- travis_retry composer install --prefer-dist --no-interaction
2319

2420
script:
2521
- vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --dry-run --diff
26-
- phpunit --verbose $PHPUNIT_FLAGS
22+
- phpunit

composer.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
"license": "MIT",
1111
"authors": [
1212
{
13-
"name": "Igor Chepurnoy",
14-
"email": "igorzfort@gmail.com"
13+
"name": "Igor Chepurnoi",
14+
"email": "chepurnoi.igor@gmail.com"
1515
}
1616
],
1717
"require": {
18+
"php": ">=7.0.0",
1819
"yiisoft/yii2": "*"
1920
},
2021
"require-dev": {
@@ -24,5 +25,11 @@
2425
"psr-4": {
2526
"yii2mod\\query\\": ""
2627
}
27-
}
28+
},
29+
"repositories": [
30+
{
31+
"type": "composer",
32+
"url": "https://asset-packagist.org"
33+
}
34+
]
2835
}

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* This is the base class for all yii framework unit tests.
1010
*/
11-
class TestCase extends \PHPUnit_Framework_TestCase
11+
class TestCase extends \PHPUnit\Framework\TestCase
1212
{
1313
protected function setUp()
1414
{

0 commit comments

Comments
 (0)