File tree Expand file tree Collapse file tree 7 files changed +81
-36
lines changed Expand file tree Collapse file tree 7 files changed +81
-36
lines changed Original file line number Diff line number Diff line change
1
+ # PHP CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-php/ for more details
4
+ #
5
+ version : 2
6
+ jobs :
7
+ php71 :
8
+ docker :
9
+ - image : circleci/php:7.1-cli-node-browsers
10
+ steps :
11
+ - checkout
12
+ - run : php -v
13
+ - run : composer install --no-interaction --prefer-source --no-suggest
14
+ - run : php vendor/bin/phpunit --colors=always
15
+ php72 :
16
+ docker :
17
+ - image : circleci/php:7.2-cli-node-browsers
18
+ steps :
19
+ - checkout
20
+ - run : php -v
21
+ - run : composer install --no-interaction --prefer-source --no-suggest
22
+ - run : php vendor/bin/phpunit --colors=always
23
+ php73 :
24
+ docker :
25
+ - image : circleci/php:7.3-cli-node-browsers
26
+ steps :
27
+ - checkout
28
+ - run : php -v
29
+ - run : composer install --no-interaction --prefer-source --no-suggest
30
+ - run : php vendor/bin/phpunit --colors=always
31
+ php74 :
32
+ docker :
33
+ - image : circleci/php:7.4-cli-node-browsers
34
+ steps :
35
+ - checkout
36
+ - run : php -v
37
+ - run : composer install --no-interaction --prefer-source --no-suggest
38
+ - run : php vendor/bin/phpunit --colors=always
39
+ php80 :
40
+ docker :
41
+ - image : circleci/php:8.0-cli-node-browsers
42
+ steps :
43
+ - checkout
44
+ - run : php -v
45
+ - run : composer install --no-interaction --prefer-source --no-suggest
46
+ - run : php vendor/bin/phpunit --colors=always
47
+ workflows :
48
+ version : 2
49
+ build :
50
+ jobs :
51
+ - php71
52
+ - php72
53
+ - php73
54
+ - php74
55
+ - php80
Original file line number Diff line number Diff line change 1
1
.php_cs.cache
2
+ .phpunit.result.cache
2
3
composer.lock
3
4
coverage.xml
5
+ phpbench.json
4
6
phpcs.xml
5
7
phpunit.xml
6
8
vendor /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- ## Arus // HTTP Response Kit for PHP 7.1+ based on PSR-17
1
+ ## HTTP Response Kit for PHP 7.1+ (incl. PHP 8) based on PSR-17
2
2
3
- [ ![ Build Status] ( https://scrutinizer-ci.com/g/autorusltd/http-response-kit/badges/build.png?b=master )] ( https://scrutinizer-ci.com/g/autorusltd/http-response-kit/build-status/master )
4
- [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/autorusltd/http-response-kit/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/autorusltd/http-response-kit/?branch=master )
3
+ [ ![ Build Status] ( https://circleci.com/gh/autorusltd/http-response-kit.svg?style=shield )] ( https://circleci.com/gh/autorusltd/http-response-kit )
5
4
[ ![ Code Coverage] ( https://scrutinizer-ci.com/g/autorusltd/http-response-kit/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/autorusltd/http-response-kit/?branch=master )
6
- [ ![ Latest Stable Version ] ( https://poser.pugx.org/arus/ http-response-kit/v/stable )] ( https://packagist.org/packages/arus /http-response-kit )
5
+ [ ![ Scrutinizer Code Quality ] ( https://scrutinizer-ci.com/g/autorusltd/ http-response-kit/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/autorusltd /http-response-kit/?branch=master )
7
6
[ ![ Total Downloads] ( https://poser.pugx.org/arus/http-response-kit/downloads )] ( https://packagist.org/packages/arus/http-response-kit )
7
+ [ ![ Latest Stable Version] ( https://poser.pugx.org/arus/http-response-kit/v/stable )] ( https://packagist.org/packages/arus/http-response-kit )
8
8
[ ![ License] ( https://poser.pugx.org/arus/http-response-kit/license )] ( https://packagist.org/packages/arus/http-response-kit )
9
9
10
+ ---
11
+
10
12
## Installation (via composer)
11
13
12
14
``` bash
13
- composer require ' arus/http-response-kit:^1.0 '
15
+ composer require ' arus/http-response-kit:^1.3 '
14
16
```
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " arus/http-response-kit" ,
3
3
"homepage" : " https://github.com/autorusltd/http-response-kit" ,
4
- "description" : " Arus // HTTP Response Kit for PHP 7.1+ based on PSR-17" ,
4
+ "description" : " Arus // HTTP Response Kit for PHP 7.1+ (incl. PHP 8) based on PSR-17" ,
5
5
"license" : " MIT" ,
6
6
"keywords" : [
7
7
" arus" ,
8
8
" fenric" ,
9
9
" psr-7" ,
10
- " psr-17"
10
+ " psr-17" ,
11
+ " php7" ,
12
+ " php8"
11
13
],
12
14
"authors" : [
13
15
{
17
19
}
18
20
],
19
21
"require" : {
20
- "php" : " ^7.1"
22
+ "php" : " ^7.1|^8.0 "
21
23
},
22
24
"require-dev" : {
25
+ "phpunit/phpunit" : " 7.5.20|9.5.0" ,
23
26
"arus/php-coding-standard" : " ^1.0" ,
24
- "phpunit/phpunit" : " 7.5.1" ,
25
27
"sunrise/http-message" : " ^1.3" ,
26
- "zendframework/zend -diactoros" : " ^2.2 " ,
28
+ "laminas/laminas -diactoros" : " ^2.4|^2.5 " ,
27
29
"symfony/validator" : " ^4.0"
28
30
},
29
31
"autoload" : {
38
40
},
39
41
"scripts" : {
40
42
"test" : [
41
- " phpcs " ,
42
- " phpunit --colors=always --coverage-text "
43
+ " phpunit --colors=always --coverage-text " ,
44
+ " phpcs "
43
45
]
44
46
}
45
47
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
- <phpunit colors =" true" >
2
+ <phpunit colors =" true" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
3
+ <coverage >
4
+ <include >
5
+ <directory >./src</directory >
6
+ </include >
7
+ </coverage >
3
8
<testsuites >
4
9
<testsuite name =" Arus Http Response Kit Test Suite" >
5
10
<directory >./tests/</directory >
6
11
</testsuite >
7
12
</testsuites >
8
- <filter >
9
- <whitelist >
10
- <directory >./src</directory >
11
- </whitelist >
12
- </filter >
13
13
</phpunit >
Original file line number Diff line number Diff line change 9
9
use PHPUnit \Framework \TestCase ;
10
10
use Sunrise \Http \Message \Response as SunriseResponse ;
11
11
use Sunrise \Http \Message \ResponseFactory as SunriseResponseFactory ;
12
- use Zend \Diactoros \Response as ZendResponse ;
13
- use Zend \Diactoros \ResponseFactory as ZendResponseFactory ;
12
+ use Laminas \Diactoros \Response as ZendResponse ;
13
+ use Laminas \Diactoros \ResponseFactory as ZendResponseFactory ;
14
14
use Symfony \Component \Validator \ConstraintViolationList ;
15
15
use Symfony \Component \Validator \ConstraintViolation ;
16
16
You can’t perform that action at this time.
0 commit comments