From a848655655eaf5136b1fd414f628fba0b2e996d2 Mon Sep 17 00:00:00 2001 From: Bill Li Date: Thu, 25 Jan 2018 01:09:10 +0800 Subject: [PATCH] Add phpunit tool. --- composer.json | 9 ++++++++- phpunit.xml | 22 ++++++++++++++++++++++ tests/TestCase.php | 19 +++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 phpunit.xml create mode 100644 tests/TestCase.php diff --git a/composer.json b/composer.json index 868d20f..837a4ec 100644 --- a/composer.json +++ b/composer.json @@ -17,11 +17,18 @@ "require": { "php": ">=7.1", "guzzlehttp/guzzle": "^6.2", - "nicmart/string-template": "~0.1" + "nicmart/string-template": "~0.1", + "mockery/mockery": "0.9.*", + "phpunit/phpunit": "~6.0" }, "autoload": { "psr-4": { "AnomalyLab\\LuminousSMS\\": "src/" } + }, + "autoload-dev": { + "psr-4": { + "AnomalyLab\\LuminousSMS\\Tests\\": "tests/" + } } } diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..f284469 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,22 @@ + + + + + ./tests/ + + + + + src/ + + + \ No newline at end of file diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..b463d02 --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,19 @@ +