File tree Expand file tree Collapse file tree 8 files changed +86
-24
lines changed Expand file tree Collapse file tree 8 files changed +86
-24
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 11.php_cs.cache
2+ .phpunit.result.cache
23composer.lock
34coverage.xml
5+ phpbench.json
46phpcs.xml
57phpunit.xml
68vendor /
Original file line number Diff line number Diff line change 55 - php : 7.1
66 - php : 7.2
77 - php : 7.3
8+ - php : 7.4
9+ - php : nightly
810 fast_finish : true
911
1012before_install :
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2019 Anatoly Fenric
3+ Copyright (c) 2018 Sunrise // PHP
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1- ## Sunrise // HTTP cURL client for PHP 7.1+ based on PSR-18
1+ ## HTTP cURL client for PHP 7.1+ (incl. PHP 8) based on PSR-18
22
33[ ![ Gitter] ( https://badges.gitter.im/sunrise-php/support.png )] ( https://gitter.im/sunrise-php/support )
4- [ ![ Build Status] ( https://api.travis-ci.com/sunrise-php/http-client-curl.svg?branch=master )] ( https://travis-ci.com/sunrise-php/http-client-curl )
5- [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/sunrise-php/http-client-curl/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/sunrise-php/http-client-curl/?branch=master )
4+ [ ![ Build Status] ( https://circleci.com/gh/sunrise-php/http-client-curl.svg?style=shield )] ( https://circleci.com/gh/sunrise-php/http-client-curl )
65[ ![ Code Coverage] ( https://scrutinizer-ci.com/g/sunrise-php/http-client-curl/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/sunrise-php/http-client-curl/?branch=master )
7- [ ![ Latest Stable Version ] ( https://poser.pugx.org/ sunrise/http-client-curl/v/stable )] ( https://packagist.org/packages /sunrise/http-client-curl )
6+ [ ![ Scrutinizer Code Quality ] ( https://scrutinizer-ci.com/g/ sunrise-php /http-client-curl/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g /sunrise-php /http-client-curl/?branch=master )
87[ ![ Total Downloads] ( https://poser.pugx.org/sunrise/http-client-curl/downloads )] ( https://packagist.org/packages/sunrise/http-client-curl )
8+ [ ![ Latest Stable Version] ( https://poser.pugx.org/sunrise/http-client-curl/v/stable )] ( https://packagist.org/packages/sunrise/http-client-curl )
99[ ![ License] ( https://poser.pugx.org/sunrise/http-client-curl/license )] ( https://packagist.org/packages/sunrise/http-client-curl )
1010
11+ ---
12+
1113## Installation
1214
1315``` bash
@@ -62,15 +64,15 @@ $client = new Client(new ResponseFactory(), [
6264]);
6365```
6466
67+ ---
68+
6569## Test run
6670
6771``` bash
68- php vendor/bin/phpunit --colors=always --coverage-text
72+ composer test
6973```
7074
71- ## Api documentation
72-
73- https://phpdoc.fenric.ru/
75+ ---
7476
7577## Useful links
7678
Original file line number Diff line number Diff line change 11{
22 "name" : " sunrise/http-client-curl" ,
3- "description" : " Sunrise // HTTP cURL client for PHP 7.1+ based on PSR-18" ,
3+ "homepage" : " https://github.com/sunrise-php/http-client-curl" ,
4+ "description" : " Sunrise // HTTP cURL client for PHP 7.1+ (incl. PHP 8) based on PSR-18" ,
5+ "license" : " MIT" ,
46 "keywords" : [
57 " fenric" ,
68 " sunrise" ,
1012 " psr-2" ,
1113 " psr-7" ,
1214 " psr-17" ,
13- " psr-18"
15+ " psr-18" ,
16+ " php7" ,
17+ " php8"
1418 ],
15- "homepage" : " https://github.com/sunrise-php/http-client-curl" ,
16- "license" : " MIT" ,
1719 "authors" : [
1820 {
1921 "name" : " Anatoly Fenric" ,
2729 }
2830 ],
2931 "require" : {
30- "php" : " ^7.1" ,
32+ "php" : " ^7.1|^8.0 " ,
3133 "ext-curl" : " *" ,
3234 "psr/http-client" : " ^1.0" ,
3335 "psr/http-factory" : " ^1.0" ,
3436 "psr/http-message" : " ^1.0"
3537 },
3638 "require-dev" : {
37- "phpunit/phpunit" : " 7.5.12" ,
38- "phpunit/php-code-coverage" : " 6.1.4" ,
39+ "phpunit/phpunit" : " 7.5.20|9.5.0" ,
3940 "sunrise/coding-standard" : " 1.0.0" ,
40- "sunrise/http-factory" : " 1.0.8 "
41+ "sunrise/http-factory" : " 1.1.0 "
4142 },
4243 "provide" : {
4344 "psr/http-client-implementation" : " 1.0" ,
Original file line number Diff line number Diff line change 11<?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 >
38 <testsuites >
49 <testsuite name =" Sunrise HTTP CURL Client Test Suite" >
510 <directory >./tests/</directory >
611 </testsuite >
712 </testsuites >
8- <filter >
9- <whitelist >
10- <directory >./src</directory >
11- </whitelist >
12- </filter >
1313</phpunit >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function testSendRequestWithEmptyUri()
4444 $ request = (new RequestFactory )->createRequest ('GET ' , '' );
4545
4646 $ this ->expectException (NetworkExceptionInterface::class);
47- $ this ->expectExceptionMessage ('<url> malformed ' );
47+ // $this->expectExceptionMessage('<url> malformed');
4848 $ client ->sendRequest ($ request );
4949 }
5050
You can’t perform that action at this time.
0 commit comments