Add proper configuration for running the unit tests

Document my target of PHP 5.3 while I'm at it.
This commit is contained in:
Rowan Collins 2017-11-09 19:19:37 +00:00
parent 6b47bd6f04
commit 0fb1c9b166
2 changed files with 18 additions and 1 deletions

View file

@ -16,6 +16,9 @@
"classmap": ["src/"] "classmap": ["src/"]
}, },
"require-dev": { "require-dev": {
"satooshi/php-coveralls": "dev-master" "phpunit/phpunit": "^4.8"
},
"require": {
"php": ">5.3"
} }
} }

14
phpunit.xml Normal file
View file

@ -0,0 +1,14 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.1/phpunit.xsd"
bootstrap="tests/bootstrap.php"
backupGlobals="true"
verbose="true"
colors="true"
>
<testsuites>
<testsuite name="SimpleXML Debug Tests">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>