From 2d95b3bb09032ce17d1e9cca6ecdba2ccf5e5c00 Mon Sep 17 00:00:00 2001 From: Jan Chren Date: Sun, 14 Sep 2014 22:44:59 +0200 Subject: [PATCH] PHPUnit testing introduced --- composer.json | 8 ++++++++ system/tests/Grav/Test/.gitkeep | 0 system/tests/Grav/TestCase.php | 8 ++++++++ system/tests/bootstrap.php | 6 ++++++ system/tests/phpunit.xml | 18 ++++++++++++++++++ 5 files changed, 40 insertions(+) create mode 100644 system/tests/Grav/Test/.gitkeep create mode 100644 system/tests/Grav/TestCase.php create mode 100644 system/tests/bootstrap.php create mode 100644 system/tests/phpunit.xml diff --git a/composer.json b/composer.json index 82067afc3..aee73b504 100644 --- a/composer.json +++ b/composer.json @@ -20,12 +20,20 @@ "donatj/phpuseragentparser": "dev-master", "pimple/pimple": "~3.0" }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, "autoload": { "psr-4": { "Grav\\": "system/src/Grav" }, "files": ["system/defines.php"] }, + "autoload-dev": { + "psr-4": { + "Grav\\Test\\": "system/tests/Grav/Test/" + } + }, "archive": { "exclude": ["VERSION"] }, diff --git a/system/tests/Grav/Test/.gitkeep b/system/tests/Grav/Test/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/system/tests/Grav/TestCase.php b/system/tests/Grav/TestCase.php new file mode 100644 index 000000000..718bbadcb --- /dev/null +++ b/system/tests/Grav/TestCase.php @@ -0,0 +1,8 @@ + + + + + ./Grav/ + + +