File tree Expand file tree Collapse file tree 3 files changed +30
-13
lines changed Expand file tree Collapse file tree 3 files changed +30
-13
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ before_script: vendor/bin/http_test_server > /dev/null 2>&1 &
36
36
37
37
script :
38
38
- $TEST_COMMAND
39
+ - ./vendor/bin/phpunit tests/SocketClientFeatureTest.php --printer \Http\Client\Tests\FeatureTestListener || echo ""
39
40
40
41
after_success :
41
42
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit colors =" true" bootstrap =" vendor/autoload.php" >
3
- <testsuites >
4
- <testsuite name =" Socket Client Test Suite" >
5
- <directory >tests/</directory >
6
- </testsuite >
7
- </testsuites >
8
- <php >
9
- <server name =" TEST_SERVER" value =" http://127.0.0.1:10000/server.php" />
10
- </php >
11
- <filter >
12
- <whitelist >
13
- <directory suffix =" .php" >src/</directory >
14
- </whitelist >
15
- </filter >
3
+ <testsuites >
4
+ <testsuite name =" Socket Client Test Suite" >
5
+ <directory >tests/</directory >
6
+ <exclude >tests/SocketClientFeatureTest.php</exclude >
7
+ </testsuite >
8
+ </testsuites >
9
+ <php >
10
+ <server name =" TEST_SERVER" value =" http://127.0.0.1:10000/server.php" />
11
+ </php >
12
+ <filter >
13
+ <whitelist >
14
+ <directory suffix =" .php" >src/</directory >
15
+ </whitelist >
16
+ </filter >
16
17
</phpunit >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Http \Socket \Tests ;
4
+
5
+ use Http \Client \Tests \HttpFeatureTest ;
6
+ use Http \Message \MessageFactory \GuzzleMessageFactory ;
7
+ use Http \Socket \SocketHttpClient ;
8
+
9
+ class SocketClientFeatureTest extends HttpFeatureTest
10
+ {
11
+ protected function createClient ()
12
+ {
13
+ return new SocketHttpClient (new GuzzleMessageFactory ());
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments