We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3bf3941 + 3119ce0 commit 7e7010bCopy full SHA for 7e7010b
.github/workflows/ci.yml
@@ -0,0 +1,33 @@
1
+name: CI
2
+
3
+on: [push, pull_request]
4
5
+jobs:
6
+ tests:
7
+ runs-on: ubuntu-latest
8
9
+ strategy:
10
+ matrix:
11
+ php: [7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v2
16
17
+ - name: Setup PHP
18
+ uses: shivammathur/setup-php@v2
19
+ with:
20
+ php-version: ${{ matrix.php }}
21
+ coverage: none
22
23
+ - name: Validate composer.json and composer.lock
24
+ run: composer validate
25
26
+ - name: Install dependencies
27
+ run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
28
29
+ - name: Check code style
30
+ run: vendor/bin/phpcs
31
32
+ - name: Run test suite
33
+ run: vendor/bin/phpunit
composer.json
@@ -16,8 +16,8 @@
"psr/http-client": "^1.0"
},
"require-dev": {
- "nyholm/psr7": "^1.3",
- "phpunit/phpunit": "^6.5",
+ "guzzlehttp/psr7": "^1.7",
+ "phpunit/phpunit": ">=6.5",
"squizlabs/php_codesniffer": "^3.5",
"webclient/fake-http-client": "^1.0"
phpunit.xml.dist
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<phpunit bootstrap="vendor/autoload.php" colors="true">
+<phpunit bootstrap="vendor/autoload.php" colors="true"cacheResult="false">
<testsuites>
<testsuite name="all">
<directory>tests</directory>
stuff/Handler.php
@@ -4,7 +4,7 @@
namespace Stuff\Webclient\Extension\ProtocolVersion;
-use Nyholm\Psr7\Response;
+use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
tests/ClientTest.php
@@ -5,7 +5,7 @@
namespace Tests\Webclient\Extension\ProtocolVersion;
use Stuff\Webclient\Extension\ProtocolVersion\Handler;
-use Nyholm\Psr7\Request;
+use GuzzleHttp\Psr7\Request;
use PHPUnit\Framework\TestCase;
use Psr\Http\Client\ClientExceptionInterface;
use Webclient\Extension\ProtocolVersion\Client;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments