diff --git a/RoboFile.php b/RoboFile.php
index c8f6cc9..be6f8f0 100644
--- a/RoboFile.php
+++ b/RoboFile.php
@@ -40,7 +40,7 @@ class RoboFile extends \Robo\Tasks {
*/
protected $cleanDirs = [
'coverage',
- 'docs',
+ 'apiDocumentation',
'phpdoc',
'build/logs',
'build/phpdox',
@@ -76,14 +76,6 @@ class RoboFile extends \Robo\Tasks {
*/
public function clean()
{
- $cleanFiles = [
- 'build/humbug.json',
- 'build/humbug-log.txt',
- ];
- array_map(function ($file) {
- @unlink($file);
- }, $cleanFiles);
-
// So the task doesn't complain,
// make any 'missing' dirs to cleanup
array_map(function ($dir) {
@@ -102,10 +94,7 @@ class RoboFile extends \Robo\Tasks {
*/
public function coverage()
{
- $this->taskPhpUnit()
- ->configFile('build/phpunit.xml')
- ->printed(true)
- ->run();
+ $this->_run(['phpdbg -qrr -- vendor/bin/phpunit -c build']);
}
/**
@@ -113,10 +102,7 @@ class RoboFile extends \Robo\Tasks {
*/
public function docs()
{
- $cmd_parts = [
- 'phpdoc'
- ];
- $this->_run($cmd_parts, ' && ');
+ $this->_run(['vendor/bin/phpdox']);
}
/**
@@ -134,29 +120,6 @@ class RoboFile extends \Robo\Tasks {
}
}
-
- /**
- * Run mutation tests with humbug
- *
- * @param bool $stats - if true, generates stats rather than running mutation tests
- */
- public function mutate($stats = FALSE)
- {
- $test_parts = [
- 'vendor/bin/humbug'
- ];
-
- $stat_parts = [
- 'vendor/bin/humbug',
- '--skip-killed=yes',
- '-v',
- './build/humbug.json'
- ];
-
- $cmd_parts = ($stats) ? $stat_parts : $test_parts;
- $this->_run($cmd_parts);
- }
-
/**
* Run the phpcs tool
*
@@ -226,9 +189,8 @@ class RoboFile extends \Robo\Tasks {
public function test()
{
$this->lint();
- $this->taskPHPUnit()
+ $this->taskPhpUnit()
->configFile('phpunit.xml')
- ->printed(true)
->run();
$this->_run(["php tests/index.php"]);
}
diff --git a/phpdoc.dist.xml b/build/phpdoc.dist.xml
similarity index 100%
rename from phpdoc.dist.xml
rename to build/phpdoc.dist.xml
diff --git a/composer.json b/composer.json
index df85e02..55d3460 100644
--- a/composer.json
+++ b/composer.json
@@ -21,20 +21,19 @@
"role": "Developer"
}],
"require": {
- "php": "^7.0"
+ "php": "^7.1"
},
"require-dev": {
"consolidation/robo": "^1.0.0",
- "infection/infection": "^0.7.0",
"monolog/monolog": "^1.21",
"pdepend/pdepend": "^2.5",
"phploc/phploc": "^4.0",
- "phpmd/phpmd": "^2.4",
"phpstan/phpstan": "^0.9.1",
"phpunit/phpunit": "^6.5",
- "sebastian/phpcpd": "^2.0",
+ "sebastian/phpcpd": "^3.0",
"simpletest/simpletest": "^1.1",
- "squizlabs/php_codesniffer": "^3.0.0"
+ "squizlabs/php_codesniffer": "^3.0.0",
+ "theseer/phpdox": "^0.11.0"
},
"autoload": {
"psr-4": {
@@ -48,6 +47,8 @@
}
},
"scripts": {
+ "build": "robo build",
+ "clean": "robo clean",
"coverage": "phpdbg -qrr -- vendor/bin/phpunit -c build",
"phpstan": "phpstan analyse -l 3 -c phpstan.neon src tests",
"test": "phpunit -c build --no-coverage"
diff --git a/build/phpdox.xml b/phpdox.xml
similarity index 95%
rename from build/phpdox.xml
rename to phpdox.xml
index edcdc07..dda8389 100644
--- a/build/phpdox.xml
+++ b/phpdox.xml
@@ -9,7 +9,7 @@
-
+
@@ -56,12 +56,12 @@
-
+
-
+
@@ -84,11 +84,9 @@
-