Skip to content

Commit b580c94

Browse files
authored
Merge pull request #52 from php-http/issue-41-psr-18
Support PSR-17
2 parents cc9e183 + dd13842 commit b580c94

22 files changed

+536
-628
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Change Log
22

3-
## Unreleased
3+
## 2.0.0 - Unreleased
44

5+
- Client expects PSR-17 ResponseFactoryInterface and StreamFactoryInterface rather than Httplug factories.
56
- Allow cURL options to overwrite our default spec-compliant default configuration
67

78
## 1.7.1 - 2018-03-36

composer.json

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"name": "php-http/curl-client",
3-
"description": "cURL client for PHP-HTTP",
3+
"description": "PSR-18 and HTTPlug Async client with cURL",
44
"license": "MIT",
5-
"keywords": ["http", "curl"],
5+
"keywords": [
6+
"curl",
7+
"http",
8+
"psr-18"
9+
],
610
"homepage": "http://php-http.org",
711
"authors": [
812
{
@@ -12,23 +16,21 @@
1216
],
1317
"prefer-stable": true,
1418
"minimum-stability": "dev",
15-
"config": {
16-
"bin-dir": "vendor/bin"
17-
},
1819
"require": {
1920
"php": "^7.1",
2021
"ext-curl": "*",
22+
"php-http/discovery": "^1.6",
2123
"php-http/httplug": "^2.0",
22-
"php-http/message-factory": "^1.0.2",
2324
"php-http/message": "^1.2",
24-
"php-http/discovery": "^1.0",
25+
"psr/http-client": "^1.0",
26+
"psr/http-factory": "^1.0",
2527
"symfony/options-resolver": "^3.4 || ^4.0"
2628
},
2729
"require-dev": {
2830
"guzzlehttp/psr7": "^1.0",
2931
"php-http/client-integration-tests": "dev-master",
3032
"phpunit/phpunit": "^7.5",
31-
"zendframework/zend-diactoros": "^1.0"
33+
"zendframework/zend-diactoros": "^2.0"
3234
},
3335
"autoload": {
3436
"psr-4": {

phpunit.xml.dist

+32-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,41 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit colors="true" bootstrap="tests/bootstrap.php">
2+
3+
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/7.0/phpunit.xsd"
6+
bootstrap="tests/bootstrap.php"
7+
colors="true"
8+
>
9+
<php>
10+
<server name="TEST_SERVER" value="http://127.0.0.1:10000/server.php"/>
11+
</php>
12+
313
<testsuites>
4-
<testsuite name="Curl Client Test Suite">
5-
<directory>tests/</directory>
14+
15+
<testsuite name="All">
16+
<directory>tests</directory>
17+
<!-- Exclude till https://github.com/php-http/message/issues/105 resolved. -->
18+
<exclude>tests/Functional/HttpAsyncClientGuzzleTest.php</exclude>
19+
<exclude>tests/Functional/HttpClientGuzzleTest.php</exclude>
20+
</testsuite>
21+
22+
<testsuite name="Unit">
23+
<directory>tests/Unit</directory>
624
</testsuite>
25+
26+
<testsuite name="Functional">
27+
<directory>tests/Functional</directory>
28+
<!-- Exclude till https://github.com/php-http/message/issues/105 resolved. -->
29+
<exclude>tests/Functional/HttpAsyncClientGuzzleTest.php</exclude>
30+
<exclude>tests/Functional/HttpClientGuzzleTest.php</exclude>
31+
</testsuite>
32+
733
</testsuites>
8-
<php>
9-
<server name="TEST_SERVER" value="http://127.0.0.1:10000/server.php" />
10-
</php>
34+
1135
<filter>
1236
<whitelist>
13-
<directory suffix=".php">src/</directory>
37+
<directory>src</directory>
1438
</whitelist>
1539
</filter>
40+
1641
</phpunit>

0 commit comments

Comments
 (0)