diff --git a/composer.json b/composer.json index 47e173b..902708c 100644 --- a/composer.json +++ b/composer.json @@ -45,14 +45,7 @@ }, "autoload-dev": { "psr-4": { - "Tests\\": "tests/" + "MyDebugTests\\": "tests/" } - }, - "config": { - "process-timeout": 0 - }, - "scripts": { - "start": "php -S localhost:8080 -t public", - "test": "phpunit" } } diff --git a/composer.json.dist b/composer.json.dist new file mode 100644 index 0000000..47e173b --- /dev/null +++ b/composer.json.dist @@ -0,0 +1,58 @@ +{ + "name": "nguyenanhung/my-debug", + "type": "library", + "description": "My Debug, Logger Library", + "keywords": [ + "debug", + "logger", + "log" + ], + "homepage": "https://github.com/nguyenanhung/my-debug", + "license": "GPL-3.0", + "authors": [ + { + "name": "Nguyen An Hung", + "email": "dev@nguyenanhung.com", + "homepage": "https://nguyenanhung.com", + "role": "Developer" + } + ], + "require": { + "ext-json": "*", + "monolog/monolog": "^1.23", + "cocur/slugify": "^1.4.1", + "theseer/directoryscanner": "^1.3", + "symfony/process": "^3.4.17", + "symfony/filesystem": "^3.4.17", + "symfony/polyfill": "^1.9.0", + "doctrine/collections": "1.3.0", + "alchemy/zippy": "^0.4.9" + }, + "require-dev": { + "kint-php/kint": "^3.0" + }, + "suggest": { + "ext-curl": "Needed to support cURL", + "ext-json": "Needed to support JSON", + "ext-iconv": "Needed to support ICONV", + "ext-mbstring": "Needed to support MbString", + "ext-openssl": "Needed to support OpenSSL" + }, + "autoload": { + "psr-4": { + "nguyenanhung\\MyDebug\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "config": { + "process-timeout": 0 + }, + "scripts": { + "start": "php -S localhost:8080 -t public", + "test": "phpunit" + } +} diff --git a/phpunit.xml b/phpunit.xml index 90e3aca..6fbb222 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,6 +1,6 @@ - + tests diff --git a/tests/Functional/BaseTestCase.php b/tests/Functional/BaseTestCase.php index 7f77db0..ec746b8 100644 --- a/tests/Functional/BaseTestCase.php +++ b/tests/Functional/BaseTestCase.php @@ -1,6 +1,6 @@