diff --git a/.gitignore b/.gitignore index 818a538..fb17df4 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,12 @@ /phing/properties +# ---------------------------------------------------------------------------------------------------------------------- +### PHPUnit +# ---------------------------------------------------------------------------------------------------------------------- +/phpunit.xml + + # ---------------------------------------------------------------------------------------------------------------------- ### PHP Coding Standards Fixer generated files # ---------------------------------------------------------------------------------------------------------------------- @@ -70,7 +76,6 @@ ### NetBeans template # ---------------------------------------------------------------------------------------------------------------------- nbproject/private/ -build/ nbbuild/ dist/ nbdist/ diff --git a/codeception.yml b/codeception.yml deleted file mode 100644 index e783baf..0000000 --- a/codeception.yml +++ /dev/null @@ -1,22 +0,0 @@ -namespace: 'Meritoo\Common\Test' -suites: - unit: - path: . -settings: - shuffle: true - lint: true -paths: - tests: tests - output: tests/_output - support: tests/_support - data: tests -coverage: - enabled: true - include: - - src/* - exclude: - - data/* - - docker/* - - phing/* - - tests/* - - vendor/* diff --git a/composer.json b/composer.json index 1dfe52a..10278cf 100644 --- a/composer.json +++ b/composer.json @@ -17,11 +17,11 @@ "symfony/http-foundation": "^3.3" }, "require-dev": { - "codeception/codeception": "^2.4", "friendsofphp/php-cs-fixer": "^2.2", "pdepend/pdepend": "^2.5", "phploc/phploc": "^2.1", "phpmd/phpmd": "^2.6", + "phpunit/phpunit": "^4.8", "sebastian/phpcpd": "^2.0", "squizlabs/php_codesniffer": "^2.9" }, diff --git a/phing/properties.dist b/phing/properties.dist index 8d72bf2..aaf0ccb 100644 --- a/phing/properties.dist +++ b/phing/properties.dist @@ -76,6 +76,7 @@ dir.tests = ${project.basedir}/tests dir.build = ${project.basedir}/build dir.reports = ${dir.build}/logs dir.reports.pdepend = ${dir.reports}/pdepend +dir.reports.coverage = ${dir.reports}/phpunit_coverage # # Disabled, because unnecessary right now # phpdocumentor/phpdocumentor cannot be installed via Composer @@ -98,7 +99,7 @@ dir.data.temporary = ${dir.data}/tmp # Path of the framework used to run unit tests # -tests.framework.path = ./vendor/bin/codecept +tests.framework.path = ./vendor/bin/phpunit --verbose --no-coverage --testdox # Path of the PHP Coding Standards Fixer (http://cs.sensiolabs.org) # diff --git a/phing/tests.xml b/phing/tests.xml index 1589cf9..c4e983b 100644 --- a/phing/tests.xml +++ b/phing/tests.xml @@ -104,6 +104,7 @@ + @@ -213,7 +214,7 @@ - + diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..b6d38e5 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,53 @@ + + + + + + + + + + ./tests/ + + + + + + ./src/ + + + + + + performance + + + + + + + diff --git a/tests/_output/.gitignore b/tests/_output/.gitignore deleted file mode 100644 index c96a04f..0000000 --- a/tests/_output/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file diff --git a/tests/_support/.gitkeep b/tests/_support/.gitkeep deleted file mode 100644 index e69de29..0000000