diff --git a/.travis.yml b/.travis.yml
index 99f6db042..c4412168b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -115,7 +115,6 @@ script:
fi
# Run the unit tests.
- - cd tests
- |
if [ "$TEST_COVERAGE" == '1' ]; then
$PHPUNIT_BIN --coverage-clover clover.xml;
@@ -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)
diff --git a/README.md b/README.md
index 018a9a20b..7893971ee 100644
--- a/README.md
+++ b/README.md
@@ -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:
diff --git a/composer.json b/composer.json
index 089f30dba..1d2618a20 100644
--- a/composer.json
+++ b/composer.json
@@ -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"
]
}
}
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
new file mode 100644
index 000000000..48856b5eb
--- /dev/null
+++ b/phpunit.xml.dist
@@ -0,0 +1,43 @@
+
+
+
+
+ tests/Auth
+
+
+ tests/Transport
+
+
+ tests/Proxy
+
+
+ tests/ChunkedEncoding.php
+ tests/Cookies.php
+ tests/Encoding.php
+ tests/IDNAEncoder.php
+ tests/IRI.php
+ tests/Requests.php
+ tests/Response/Headers.php
+ tests/Session.php
+ tests/SSL.php
+ tests/Utility/FilteredIterator.php
+
+
+
+
+
+
+
+
+
+ library
+
+
+
diff --git a/tests/phpunit.xml.dist b/tests/phpunit.xml.dist
deleted file mode 100644
index c29b6a5e6..000000000
--- a/tests/phpunit.xml.dist
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
- Auth
-
-
- Transport
-
-
- Proxy
-
-
- ChunkedEncoding.php
- Cookies.php
- Encoding.php
- IDNAEncoder.php
- IRI.php
- Requests.php
- Response/Headers.php
- Session.php
- SSL.php
- Utility/FilteredIterator.php
-
-
-
-
-
-
-
-
-
- ../library
-
-
-