Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
coverage: none
tools: composer:v2, psalm

- name: Install Psalm
run: composer require --dev vimeo/psalm:dev-master@dev --no-suggest
- name: Install dependencies
run: composer update --prefer-dist --no-progress --ansi

- name: Psalm
run: vendor/bin/psalm --output-format=github --shepherd
run: psalm --output-format=github --shepherd
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Behapi
======
Behat extension to help write describe features related to HTTP APIs.

PHP 7.3, Behat 3.5 and a discoverable php-http client are required to make
PHP 7.3, Behat 3.7 and a discoverable php-http client are required to make
this extension work.

Installing this extension requires you to require `taluu/behapi` and an
Expand All @@ -11,9 +11,6 @@ implementation of a http client (providing
`psr/http-factory-implementation ^1.0` and
`psr/http-message-implementation ^1.0`).

This still requires the interop container, while Behat doesn't have 1st class
support for the psr-11.

You can find some examples on the `examples/` directory.

Howto
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,19 @@
"psr/http-factory": "^1.0",
"psr/http-factory-implementation": "^1.0",

"php-http/discovery": "^1.0",
"php-http/discovery": "^1.11",
"php-http/client-common": "^2.0",

"container-interop/container-interop": "^1.0"
"psr/container": "^1.0"
},

"suggest": {
"symfony/var-dumper": "In order to use the VarDumper debug dumper"
},

"conflict": {
"behat/behat": "< 3.5",
"php-http/discovery": "< 1.11",
"behat/behat": "< 3.7",
"symfony/dependency-injection": "< 2.8"
},

Expand Down
2 changes: 1 addition & 1 deletion src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function get($id)
private function getPluginClientBuilder(): PluginClientBuilder
{
$builder = new PluginClientBuilder;
$uriFactory = Psr17FactoryDiscovery::findUrlFactory();
$uriFactory = Psr17FactoryDiscovery::findUriFactory();

$baseUri = $uriFactory->createUri($this->baseUrl);
$httpHistory = $this->services[HttpHistory::class];
Expand Down