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
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ script:
fi

# Run the unit tests.
- cd tests
- |
if [ "$TEST_COVERAGE" == '1' ]; then
$PHPUNIT_BIN --coverage-clover clover.xml;
Expand All @@ -127,7 +126,6 @@ script:
fi

after_script:
- utils/proxy/stop.sh
- cd ..
- tests/utils/proxy/stop.sh
- PATH=$PATH vendor/bin/stop.sh
- test $TEST_COVERAGE && bash <(curl -s https://codecov.io/bash)
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ To run the test suite, first check that you have the [PHP
JSON extension ](http://php.net/manual/en/book.json.php) enabled. Then
simply:

$ cd tests
$ phpunit

If you'd like to run a single set of tests, specify just the name:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
],
"test": [
"@php ./vendor/phpunit/phpunit/phpunit -c ./tests/phpunit.xml.dist --no-coverage"
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
],
"coverage": [
"@php ./vendor/phpunit/phpunit/phpunit -c ./tests/phpunit.xml.dist"
"@php ./vendor/phpunit/phpunit/phpunit"
]
}
}
43 changes: 43 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
backupGlobals="true"
bootstrap="tests/bootstrap.php"
colors="true"
verbose="true"
>
<testsuites>
<testsuite name="Authentication">
<directory suffix=".php">tests/Auth</directory>
</testsuite>
<testsuite name="Transports">
<directory suffix=".php">tests/Transport</directory>
</testsuite>
<testsuite name="Proxies">
<directory suffix=".php">tests/Proxy</directory>
</testsuite>
<testsuite name="General">
<file>tests/ChunkedEncoding.php</file>
<file>tests/Cookies.php</file>
<file>tests/Encoding.php</file>
<file>tests/IDNAEncoder.php</file>
<file>tests/IRI.php</file>
<file>tests/Requests.php</file>
<file>tests/Response/Headers.php</file>
<file>tests/Session.php</file>
<file>tests/SSL.php</file>
<file>tests/Utility/FilteredIterator.php</file>
</testsuite>
</testsuites>

<logging>
<log type="coverage-html" target="tests/coverage" lowUpperBound="35" highLowerBound="90"/>
</logging>

<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">library</directory>
</whitelist>
</filter>
</phpunit>
43 changes: 0 additions & 43 deletions tests/phpunit.xml.dist

This file was deleted.