From 76c9676be3ec16e603e5b00cf4e2ee0299597b98 Mon Sep 17 00:00:00 2001 From: Corpsee Date: Sun, 9 Mar 2014 01:44:54 +0700 Subject: [PATCH] Added phpunit config/bootstrap files for autostart all tests --- Tests/bootstrap.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ composer.json | 2 +- phpunit.xml | 24 ++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 Tests/bootstrap.php create mode 100644 phpunit.xml diff --git a/Tests/bootstrap.php b/Tests/bootstrap.php new file mode 100644 index 00000000..50b285c5 --- /dev/null +++ b/Tests/bootstrap.php @@ -0,0 +1,44 @@ +loadYaml(dirname(__DIR__) . '/PHPCI/config.yml'); +} + +require_once(dirname(__DIR__) . '/vars.php'); diff --git a/composer.json b/composer.json index acafd3a5..7ccbc600 100644 --- a/composer.json +++ b/composer.json @@ -34,11 +34,11 @@ }, "require-dev": { + "phpunit/phpunit": "3.7.*", "phpspec/prophecy-phpunit": "1.*" }, "suggest": { - "phpunit/phpunit": "PHP unit testing framework", "phpmd/phpmd": "PHP Mess Detector", "sebastian/phpcpd": "PHP Copy/Paste Detector", "squizlabs/php_codesniffer": "PHP Code Sniffer", diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 00000000..15bd43aa --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,24 @@ + + + + + + ./Tests/PHPCI/Helper + + + ./Tests/PHPCI/Logging + + + ./Tests/PHPCI/Plugin + + +