Skip to content

Commit 8d4d37a

Browse files
authored
Minor cleanups (#2)
* Update README.md * Added test with lowest * Do not self-update composer. But do remove xdebug * Removed guzzle
1 parent 1039f27 commit 8d4d37a

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ php:
1010
- 5.5
1111
- 5.6
1212
- 7.0
13+
- 7.1
1314
- hhvm
1415

1516
env:
@@ -20,9 +21,14 @@ branches:
2021
except:
2122
- /^analysis-.*$/
2223

24+
matrix:
25+
fast_finish: true
26+
include:
27+
- php: 5.5
28+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
2329

2430
before_install:
25-
- travis_retry composer self-update
31+
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
2632

2733
install:
2834
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction

README.md

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,22 @@ php artisan vendor:publish --provider="Http\Httplug\HttplugServiceProvider"
4949
```php
5050
<?php
5151

52-
use GuzzleHttp\Psr7\Request;
53-
54-
/**
55-
* Using the factory
56-
*/
52+
// Create a request using a MessageFactory
5753
$factory = app()->make('httplug.message_factory.default');
5854
$request = $factory->createRequest('GET', 'http://httpbin.org');
5955

6056
$httplug = app()->make('httplug');
61-
$request = new Request('GET', 'http://httpbin.org');
6257

63-
/**
64-
* Send request with default driver
65-
* @var \Psr\Http\Message\ResponseInterface
66-
*/
58+
// Send request with default driver
6759
$response = $httplug->sendRequest($request);
68-
/**
69-
* Send request with another driver
70-
*/
60+
61+
// Send request with another driver
7162
$response = $httplug->driver('curl')->sendRequest($request);
7263

73-
/**
74-
* Send request with default driver using facade
75-
* @var \Psr\Http\Message\ResponseInterface
76-
*/
64+
// Send request with default driver using facade
7765
$response = Httplug::sendRequest($request);
78-
/**
79-
* Send request with another driver using facade
80-
*/
66+
67+
// Send request with another driver using facade
8168
$response = Httplug::driver('curl')->sendRequest($request)
8269

8370
```
@@ -88,7 +75,6 @@ $response = Httplug::driver('curl')->sendRequest($request)
8875
$ composer test
8976
```
9077

91-
9278
## Contributing
9379

9480
Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).

0 commit comments

Comments
 (0)