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 &
3636
3737script :
3838 - $TEST_COMMAND
39+ - ./vendor/bin/phpunit tests/SocketClientFeatureTest.php --printer \Http\Client\Tests\FeatureTestListener || echo ""
3940
4041after_success :
4142 - if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<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 >
1617</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