diff --git a/.circleci/config.yml b/.circleci/config.yml index 9757a08..f7aeaaa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -72,9 +72,9 @@ _custom: working_directory: '~/repo' steps: - 'checkout' - - - run: - <<: *step__run__upgrade_git +# - +# run: +# <<: *step__run__upgrade_git - run: <<: *step__run__install_php_extensions diff --git a/composer.json b/composer.json index 54f048c..0f0b7e4 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "sweetchuck/robo-phpmd", "description": "Template to create a new Robo task.", - "license": "GPL-2.0", + "license": "GPL-2.0-or-later", "config": { "bin-dir": "bin", "sort-packages": true @@ -13,18 +13,17 @@ "consolidation/robo": "^1.0", "danielstjules/stringy": "^3.1", "phpmd/phpmd": "^2.6", - "symfony/process": "^3.2" + "webmozart/path-util": "^2.3" }, "require-dev": { "codeception/codeception": "^2.2", "mikey179/vfsStream": "^1.6", - "sweetchuck/codeception-module-robo-task-runner": "^0.0", + "sweetchuck/codeception-module-robo-task-runner": "^0.4", "sweetchuck/git-hooks": "^0.0", "sweetchuck/robo-git": "^0.0", "sweetchuck/robo-phpcs": "^0.0", - "symfony/finder": "^3.2", - "symfony/yaml": "^3.2", - "webmozart/path-util": "^2.3" + "symfony/finder": "^3.2 || ^4.0", + "symfony/yaml": "^3.2 || ^4.0" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index d8015c8..833dab1 100644 --- a/composer.lock +++ b/composer.lock @@ -1,23 +1,23 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "15172800f4afe33061b5f4f3cbb60002", + "content-hash": "72427e1de54be13d839b62d27e7383c4", "packages": [ { "name": "consolidation/annotated-command", - "version": "2.8.2", + "version": "2.8.3", "source": { "type": "git", "url": "https://github.com/consolidation/annotated-command.git", - "reference": "e97c38717eae23a2bafcf3f09438290eee6ebeb4" + "reference": "8f8f5da2ca06fbd3a85f7d551c49f844b7c59437" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/e97c38717eae23a2bafcf3f09438290eee6ebeb4", - "reference": "e97c38717eae23a2bafcf3f09438290eee6ebeb4", + "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/8f8f5da2ca06fbd3a85f7d551c49f844b7c59437", + "reference": "8f8f5da2ca06fbd3a85f7d551c49f844b7c59437", "shasum": "" }, "require": { @@ -29,6 +29,7 @@ "symfony/finder": "^2.5|^3|^4" }, "require-dev": { + "greg-1-anderson/composer-test-scenarios": "^1", "phpunit/phpunit": "^4.8", "satooshi/php-coveralls": "^1.0.2 | dev-master", "squizlabs/php_codesniffer": "^2.7" @@ -55,7 +56,7 @@ } ], "description": "Initialize Symfony Console commands from annotated command class methods.", - "time": "2017-11-29T16:23:23+00:00" + "time": "2018-02-23T16:32:04+00:00" }, { "name": "consolidation/config", @@ -161,16 +162,16 @@ }, { "name": "consolidation/output-formatters", - "version": "3.1.13", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/consolidation/output-formatters.git", - "reference": "3188461e965b32148c8fb85261833b2b72d34b8c" + "reference": "da889e4bce19f145ca4ec5b1725a946f4eb625a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/3188461e965b32148c8fb85261833b2b72d34b8c", - "reference": "3188461e965b32148c8fb85261833b2b72d34b8c", + "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/da889e4bce19f145ca4ec5b1725a946f4eb625a9", + "reference": "da889e4bce19f145ca4ec5b1725a946f4eb625a9", "shasum": "" }, "require": { @@ -179,11 +180,17 @@ "symfony/finder": "^2.5|^3|^4" }, "require-dev": { - "phpunit/phpunit": "^4.8", - "satooshi/php-coveralls": "^1.0.2 | dev-master", + "g-1-a/composer-test-scenarios": "^2", + "phpunit/phpunit": "^5.7.27", + "satooshi/php-coveralls": "^2", "squizlabs/php_codesniffer": "^2.7", + "symfony/console": "3.2.3", + "symfony/var-dumper": "^2.8|^3|^4", "victorjonsson/markdowndocs": "^1.3" }, + "suggest": { + "symfony/var-dumper": "For using the var_dump formatter" + }, "type": "library", "extra": { "branch-alias": { @@ -206,20 +213,20 @@ } ], "description": "Format text by applying transformations provided by plug-in formatters.", - "time": "2017-11-29T15:25:38+00:00" + "time": "2018-03-20T15:18:32+00:00" }, { "name": "consolidation/robo", - "version": "1.2.1", + "version": "1.2.3", "source": { "type": "git", "url": "https://github.com/consolidation/Robo.git", - "reference": "b6296f1cf1088f1a11b0b819f9e42ef6f00b79a9" + "reference": "54a13e268917b92576d75e10dca8227b95a574d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/consolidation/Robo/zipball/b6296f1cf1088f1a11b0b819f9e42ef6f00b79a9", - "reference": "b6296f1cf1088f1a11b0b819f9e42ef6f00b79a9", + "url": "https://api.github.com/repos/consolidation/Robo/zipball/54a13e268917b92576d75e10dca8227b95a574d9", + "reference": "54a13e268917b92576d75e10dca8227b95a574d9", "shasum": "" }, "require": { @@ -243,8 +250,11 @@ "codeception/aspect-mock": "^1|^2.1.1", "codeception/base": "^2.3.7", "codeception/verify": "^0.3.2", - "greg-1-anderson/composer-test-scenarios": "^1", + "g-1-a/composer-test-scenarios": "^2", + "goaop/framework": "~2.1.2", + "goaop/parser-reflection": "^1.1.0", "natxet/cssmin": "3.0.4", + "nikic/php-parser": "^3.1.5", "patchwork/jsqueeze": "~2", "pear/archive_tar": "^1.4.2", "phpunit/php-code-coverage": "~2|~4", @@ -283,7 +293,7 @@ } ], "description": "Modern task runner", - "time": "2017-12-29T06:48:35+00:00" + "time": "2018-04-06T05:27:37+00:00" }, { "name": "container-interop/container-interop", @@ -795,16 +805,16 @@ }, { "name": "symfony/config", - "version": "v4.0.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "0e86d267db0851cf55f339c97df00d693fe8592f" + "reference": "7c19370ab04e9ac05b74a504198e165f5ccf6dd8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/0e86d267db0851cf55f339c97df00d693fe8592f", - "reference": "0e86d267db0851cf55f339c97df00d693fe8592f", + "url": "https://api.github.com/repos/symfony/config/zipball/7c19370ab04e9ac05b74a504198e165f5ccf6dd8", + "reference": "7c19370ab04e9ac05b74a504198e165f5ccf6dd8", "shasum": "" }, "require": { @@ -815,6 +825,8 @@ "symfony/finder": "<3.4" }, "require-dev": { + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/event-dispatcher": "~3.4|~4.0", "symfony/finder": "~3.4|~4.0", "symfony/yaml": "~3.4|~4.0" }, @@ -851,25 +863,24 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:38:00+00:00" + "time": "2018-03-19T22:35:49+00:00" }, { "name": "symfony/console", - "version": "v3.4.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "8394c8ef121949e8f858f13bc1e34f05169e4e7d" + "reference": "3e820bc2c520a87ca209ad8fa961c97f42e0b4ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/8394c8ef121949e8f858f13bc1e34f05169e4e7d", - "reference": "8394c8ef121949e8f858f13bc1e34f05169e4e7d", + "url": "https://api.github.com/repos/symfony/console/zipball/3e820bc2c520a87ca209ad8fa961c97f42e0b4ae", + "reference": "3e820bc2c520a87ca209ad8fa961c97f42e0b4ae", "shasum": "" }, "require": { - "php": "^5.5.9|>=7.0.8", - "symfony/debug": "~2.8|~3.0|~4.0", + "php": "^7.1.3", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { @@ -878,14 +889,14 @@ }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~3.3|~4.0", + "symfony/config": "~3.4|~4.0", "symfony/dependency-injection": "~3.4|~4.0", - "symfony/event-dispatcher": "~2.8|~3.0|~4.0", + "symfony/event-dispatcher": "~3.4|~4.0", "symfony/lock": "~3.4|~4.0", - "symfony/process": "~3.3|~4.0" + "symfony/process": "~3.4|~4.0" }, "suggest": { - "psr/log": "For using the console logger", + "psr/log-implementation": "For using the console logger", "symfony/event-dispatcher": "", "symfony/lock": "", "symfony/process": "" @@ -893,7 +904,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.4-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -920,76 +931,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:37:34+00:00" - }, - { - "name": "symfony/debug", - "version": "v4.0.3", - "source": { - "type": "git", - "url": "https://github.com/symfony/debug.git", - "reference": "9ae4223a661b56a9abdce144de4886cca37f198f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/9ae4223a661b56a9abdce144de4886cca37f198f", - "reference": "9ae4223a661b56a9abdce144de4886cca37f198f", - "shasum": "" - }, - "require": { - "php": "^7.1.3", - "psr/log": "~1.0" - }, - "conflict": { - "symfony/http-kernel": "<3.4" - }, - "require-dev": { - "symfony/http-kernel": "~3.4|~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Debug\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Debug Component", - "homepage": "https://symfony.com", - "time": "2018-01-03T17:15:19+00:00" + "time": "2018-04-30T01:23:47+00:00" }, { "name": "symfony/dependency-injection", - "version": "v4.0.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "67bf5e4f4da85624f30a5e43b7f43225c8b71959" + "reference": "1f99622d8a63b160bfdd0ad7b2da56ee413cba64" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/67bf5e4f4da85624f30a5e43b7f43225c8b71959", - "reference": "67bf5e4f4da85624f30a5e43b7f43225c8b71959", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/1f99622d8a63b160bfdd0ad7b2da56ee413cba64", + "reference": "1f99622d8a63b160bfdd0ad7b2da56ee413cba64", "shasum": "" }, "require": { @@ -1047,20 +1002,20 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2018-01-04T15:52:56+00:00" + "time": "2018-04-30T01:05:59+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.0.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "74d33aac36208c4d6757807d9f598f0133a3a4eb" + "reference": "63353a71073faf08f62caab4e6889b06a787f07b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/74d33aac36208c4d6757807d9f598f0133a3a4eb", - "reference": "74d33aac36208c4d6757807d9f598f0133a3a4eb", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/63353a71073faf08f62caab4e6889b06a787f07b", + "reference": "63353a71073faf08f62caab4e6889b06a787f07b", "shasum": "" }, "require": { @@ -1110,29 +1065,29 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:38:00+00:00" + "time": "2018-04-06T07:35:43+00:00" }, { "name": "symfony/filesystem", - "version": "v3.4.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "e078773ad6354af38169faf31c21df0f18ace03d" + "reference": "5d2d655b2c72fc4d9bf7e9bf14f72a447b940f21" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/e078773ad6354af38169faf31c21df0f18ace03d", - "reference": "e078773ad6354af38169faf31c21df0f18ace03d", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/5d2d655b2c72fc4d9bf7e9bf14f72a447b940f21", + "reference": "5d2d655b2c72fc4d9bf7e9bf14f72a447b940f21", "shasum": "" }, "require": { - "php": "^5.5.9|>=7.0.8" + "php": "^7.1.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.4-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1159,29 +1114,29 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:37:34+00:00" + "time": "2018-02-22T10:50:29+00:00" }, { "name": "symfony/finder", - "version": "v3.4.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "613e26310776f49a1773b6737c6bd554b8bc8c6f" + "reference": "ca27c02b7a3fef4828c998c2ff9ba7aae1641c49" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/613e26310776f49a1773b6737c6bd554b8bc8c6f", - "reference": "613e26310776f49a1773b6737c6bd554b8bc8c6f", + "url": "https://api.github.com/repos/symfony/finder/zipball/ca27c02b7a3fef4828c998c2ff9ba7aae1641c49", + "reference": "ca27c02b7a3fef4828c998c2ff9ba7aae1641c49", "shasum": "" }, "require": { - "php": "^5.5.9|>=7.0.8" + "php": "^7.1.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.4-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1208,20 +1163,20 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:37:34+00:00" + "time": "2018-04-04T05:10:37+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.6.0", + "version": "v1.8.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296" + "reference": "3296adf6a6454a050679cde90f95350ad604b171" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", - "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/3296adf6a6454a050679cde90f95350ad604b171", + "reference": "3296adf6a6454a050679cde90f95350ad604b171", "shasum": "" }, "require": { @@ -1233,7 +1188,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6-dev" + "dev-master": "1.8-dev" } }, "autoload": { @@ -1267,29 +1222,29 @@ "portable", "shim" ], - "time": "2017-10-11T12:05:26+00:00" + "time": "2018-04-26T10:06:28+00:00" }, { "name": "symfony/process", - "version": "v3.4.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "ff69f110c6b33fd33cd2089ba97d6112f44ef0ba" + "reference": "d7dc1ee5dfe9f732cb1bba7310f5b99f2b7a6d25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/ff69f110c6b33fd33cd2089ba97d6112f44ef0ba", - "reference": "ff69f110c6b33fd33cd2089ba97d6112f44ef0ba", + "url": "https://api.github.com/repos/symfony/process/zipball/d7dc1ee5dfe9f732cb1bba7310f5b99f2b7a6d25", + "reference": "d7dc1ee5dfe9f732cb1bba7310f5b99f2b7a6d25", "shasum": "" }, "require": { - "php": "^5.5.9|>=7.0.8" + "php": "^7.1.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.4-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1316,24 +1271,24 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:37:34+00:00" + "time": "2018-04-03T05:24:00+00:00" }, { "name": "symfony/yaml", - "version": "v3.4.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "25c192f25721a74084272671f658797d9e0e0146" + "reference": "275ad099e4cbe612a2acbca14a16dd1c5311324d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/25c192f25721a74084272671f658797d9e0e0146", - "reference": "25c192f25721a74084272671f658797d9e0e0146", + "url": "https://api.github.com/repos/symfony/yaml/zipball/275ad099e4cbe612a2acbca14a16dd1c5311324d", + "reference": "275ad099e4cbe612a2acbca14a16dd1c5311324d", "shasum": "" }, "require": { - "php": "^5.5.9|>=7.0.8" + "php": "^7.1.3" }, "conflict": { "symfony/console": "<3.4" @@ -1347,7 +1302,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.4-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1374,22 +1329,118 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:37:34+00:00" + "time": "2018-04-08T08:49:08+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/assert.git", + "reference": "0df1908962e7a3071564e857d86874dad1ef204a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a", + "reference": "0df1908962e7a3071564e857d86874dad1ef204a", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2018-01-29T19:49:41+00:00" + }, + { + "name": "webmozart/path-util", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/path-util.git", + "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725", + "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "webmozart/assert": "~1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\PathUtil\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.", + "time": "2015-12-17T08:42:14+00:00" } ], "packages-dev": [ { "name": "behat/gherkin", - "version": "v4.4.5", + "version": "v4.5.1", "source": { "type": "git", "url": "https://github.com/Behat/Gherkin.git", - "reference": "5c14cff4f955b17d20d088dec1bde61c0539ec74" + "reference": "74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Behat/Gherkin/zipball/5c14cff4f955b17d20d088dec1bde61c0539ec74", - "reference": "5c14cff4f955b17d20d088dec1bde61c0539ec74", + "url": "https://api.github.com/repos/Behat/Gherkin/zipball/74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a", + "reference": "74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a", "shasum": "" }, "require": { @@ -1435,35 +1486,32 @@ "gherkin", "parser" ], - "time": "2016-10-30T11:50:56+00:00" + "time": "2017-08-30T11:04:43+00:00" }, { "name": "codeception/codeception", - "version": "2.3.7", + "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/Codeception/Codeception.git", - "reference": "151de88277878adc18784ef3eaddd87f4a2fdc14" + "reference": "bca3547632556875f1cdd567d6057cc14fe472b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/Codeception/zipball/151de88277878adc18784ef3eaddd87f4a2fdc14", - "reference": "151de88277878adc18784ef3eaddd87f4a2fdc14", + "url": "https://api.github.com/repos/Codeception/Codeception/zipball/bca3547632556875f1cdd567d6057cc14fe472b8", + "reference": "bca3547632556875f1cdd567d6057cc14fe472b8", "shasum": "" }, "require": { - "behat/gherkin": "~4.4.0", + "behat/gherkin": "^4.4.0", + "codeception/phpunit-wrapper": "^6.0.9|^7.0.6", + "codeception/stub": "^1.0", "ext-json": "*", "ext-mbstring": "*", "facebook/webdriver": ">=1.1.3 <2.0", "guzzlehttp/guzzle": ">=4.1.4 <7.0", "guzzlehttp/psr7": "~1.0", "php": ">=5.4.0 <8.0", - "phpunit/php-code-coverage": ">=2.2.4 <6.0", - "phpunit/phpunit": ">=4.8.28 <5.0.0 || >=5.6.3 <7.0", - "phpunit/phpunit-mock-objects": ">2.3 <5.0", - "sebastian/comparator": ">1.1 <3.0", - "sebastian/diff": ">=1.4 <3.0", "symfony/browser-kit": ">=2.7 <5.0", "symfony/console": ">=2.7 <5.0", "symfony/css-selector": ">=2.7 <5.0", @@ -1476,8 +1524,6 @@ "codeception/specify": "~0.3", "facebook/graph-sdk": "~5.3", "flow/jsonpath": "~0.2", - "league/factory-muffin": "^3.0", - "league/factory-muffin-faker": "^1.0", "monolog/monolog": "~1.8", "pda/pheanstalk": "~3.0", "php-amqplib/php-amqplib": "~2.4", @@ -1531,7 +1577,83 @@ "functional testing", "unit testing" ], - "time": "2017-12-12T04:22:17+00:00" + "time": "2018-03-31T22:30:43+00:00" + }, + { + "name": "codeception/phpunit-wrapper", + "version": "7.1.1", + "source": { + "type": "git", + "url": "https://github.com/Codeception/phpunit-wrapper.git", + "reference": "33e8ccf2f7abf5c031eeae9802b821d30ec0f7fc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/33e8ccf2f7abf5c031eeae9802b821d30ec0f7fc", + "reference": "33e8ccf2f7abf5c031eeae9802b821d30ec0f7fc", + "shasum": "" + }, + "require": { + "phpunit/php-code-coverage": "^6.0", + "phpunit/phpunit": "^7.1", + "sebastian/comparator": "^2.0", + "sebastian/diff": "^3.0" + }, + "require-dev": { + "codeception/specify": "*", + "vlucas/phpdotenv": "^2.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Codeception\\PHPUnit\\": "src\\" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Davert", + "email": "davert.php@resend.cc" + } + ], + "description": "PHPUnit classes used by Codeception", + "time": "2018-04-20T10:17:13+00:00" + }, + { + "name": "codeception/stub", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/Codeception/Stub.git", + "reference": "95fb7a36b81890dd2e5163e7ab31310df6f1bb99" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Codeception/Stub/zipball/95fb7a36b81890dd2e5163e7ab31310df6f1bb99", + "reference": "95fb7a36b81890dd2e5163e7ab31310df6f1bb99", + "shasum": "" + }, + "require": { + "phpunit/phpunit-mock-objects": ">2.3 <7.0" + }, + "require-dev": { + "phpunit/phpunit": ">=4.8 <8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Codeception\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Flexible Stub wrapper for PHPUnit's Mock Builder", + "time": "2018-02-18T13:56:56+00:00" }, { "name": "doctrine/instantiator", @@ -1644,16 +1766,16 @@ }, { "name": "guzzlehttp/guzzle", - "version": "6.3.0", + "version": "6.3.3", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699" + "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4db5a78a5ea468d4831de7f0bf9d9415e348699", - "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba", + "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba", "shasum": "" }, "require": { @@ -1663,7 +1785,7 @@ }, "require-dev": { "ext-curl": "*", - "phpunit/phpunit": "^4.0 || ^5.0", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", "psr/log": "^1.0" }, "suggest": { @@ -1672,7 +1794,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "6.2-dev" + "dev-master": "6.3-dev" } }, "autoload": { @@ -1705,7 +1827,7 @@ "rest", "web service" ], - "time": "2017-06-22T18:50:49+00:00" + "time": "2018-04-22T15:46:56+00:00" }, { "name": "guzzlehttp/promises", @@ -2072,16 +2194,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "4.2.0", + "version": "4.3.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "66465776cfc249844bde6d117abff1d22e06c2da" + "reference": "94fd0001232e47129dd3504189fa1c7225010d08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/66465776cfc249844bde6d117abff1d22e06c2da", - "reference": "66465776cfc249844bde6d117abff1d22e06c2da", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08", + "reference": "94fd0001232e47129dd3504189fa1c7225010d08", "shasum": "" }, "require": { @@ -2119,7 +2241,7 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2017-11-27T17:38:31+00:00" + "time": "2017-11-30T07:14:17+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -2170,28 +2292,28 @@ }, { "name": "phpspec/prophecy", - "version": "1.7.3", + "version": "1.7.6", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf" + "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf", - "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/33a7e3c4fda54e912ff6338c48823bd5c0f0b712", + "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", - "sebastian/comparator": "^1.1|^2.0", + "sebastian/comparator": "^1.1|^2.0|^3.0", "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, "require-dev": { "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" }, "type": "library", "extra": { @@ -2229,44 +2351,44 @@ "spy", "stub" ], - "time": "2017-11-24T13:59:53+00:00" + "time": "2018-04-18T13:57:24+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "5.3.0", + "version": "6.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "661f34d0bd3f1a7225ef491a70a020ad23a057a1" + "reference": "52187754b0eed0b8159f62a6fa30073327e8c2ca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/661f34d0bd3f1a7225ef491a70a020ad23a057a1", - "reference": "661f34d0bd3f1a7225ef491a70a020ad23a057a1", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/52187754b0eed0b8159f62a6fa30073327e8c2ca", + "reference": "52187754b0eed0b8159f62a6fa30073327e8c2ca", "shasum": "" }, "require": { "ext-dom": "*", "ext-xmlwriter": "*", - "php": "^7.0", + "php": "^7.1", "phpunit/php-file-iterator": "^1.4.2", "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^2.0.1", + "phpunit/php-token-stream": "^3.0", "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^3.0", + "sebastian/environment": "^3.1", "sebastian/version": "^2.0.1", "theseer/tokenizer": "^1.1" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^7.0" }, "suggest": { - "ext-xdebug": "^2.5.5" + "ext-xdebug": "^2.6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.3.x-dev" + "dev-master": "6.0-dev" } }, "autoload": { @@ -2292,7 +2414,7 @@ "testing", "xunit" ], - "time": "2017-12-06T09:29:45+00:00" + "time": "2018-04-29T14:59:09+00:00" }, { "name": "phpunit/php-file-iterator", @@ -2384,28 +2506,28 @@ }, { "name": "phpunit/php-timer", - "version": "1.0.9", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8b8454ea6958c3dee38453d3bd571e023108c91f", + "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + "phpunit/phpunit": "^7.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -2420,7 +2542,7 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -2429,33 +2551,33 @@ "keywords": [ "timer" ], - "time": "2017-02-26T11:10:40+00:00" + "time": "2018-02-01T13:07:23+00:00" }, { "name": "phpunit/php-token-stream", - "version": "2.0.2", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "791198a2c6254db10131eecfe8c06670700904db" + "reference": "21ad88bbba7c3d93530d93994e0a33cd45f02ace" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db", - "reference": "791198a2c6254db10131eecfe8c06670700904db", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/21ad88bbba7c3d93530d93994e0a33cd45f02ace", + "reference": "21ad88bbba7c3d93530d93994e0a33cd45f02ace", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": "^7.0" + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "^6.2.4" + "phpunit/phpunit": "^7.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -2478,20 +2600,20 @@ "keywords": [ "tokenizer" ], - "time": "2017-11-27T05:48:46+00:00" + "time": "2018-02-01T13:16:43+00:00" }, { "name": "phpunit/phpunit", - "version": "6.4.4", + "version": "7.1.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "562f7dc75d46510a4ed5d16189ae57fbe45a9932" + "reference": "6d51299e307dc510149e0b7cd1931dd11770e1cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/562f7dc75d46510a4ed5d16189ae57fbe45a9932", - "reference": "562f7dc75d46510a4ed5d16189ae57fbe45a9932", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6d51299e307dc510149e0b7cd1931dd11770e1cb", + "reference": "6d51299e307dc510149e0b7cd1931dd11770e1cb", "shasum": "" }, "require": { @@ -2503,15 +2625,15 @@ "myclabs/deep-copy": "^1.6.1", "phar-io/manifest": "^1.0.1", "phar-io/version": "^1.0", - "php": "^7.0", + "php": "^7.1", "phpspec/prophecy": "^1.7", - "phpunit/php-code-coverage": "^5.2.2", - "phpunit/php-file-iterator": "^1.4.2", + "phpunit/php-code-coverage": "^6.0.1", + "phpunit/php-file-iterator": "^1.4.3", "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^1.0.9", - "phpunit/phpunit-mock-objects": "^4.0.3", - "sebastian/comparator": "^2.0.2", - "sebastian/diff": "^2.0", + "phpunit/php-timer": "^2.0", + "phpunit/phpunit-mock-objects": "^6.1.1", + "sebastian/comparator": "^2.1 || ^3.0", + "sebastian/diff": "^3.0", "sebastian/environment": "^3.1", "sebastian/exporter": "^3.1", "sebastian/global-state": "^2.0", @@ -2519,16 +2641,12 @@ "sebastian/resource-operations": "^1.0", "sebastian/version": "^2.0.1" }, - "conflict": { - "phpdocumentor/reflection-docblock": "3.0.2", - "phpunit/dbunit": "<3.0" - }, "require-dev": { "ext-pdo": "*" }, "suggest": { "ext-xdebug": "*", - "phpunit/php-invoker": "^1.1" + "phpunit/php-invoker": "^2.0" }, "bin": [ "phpunit" @@ -2536,7 +2654,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "6.4.x-dev" + "dev-master": "7.1-dev" } }, "autoload": { @@ -2562,33 +2680,30 @@ "testing", "xunit" ], - "time": "2017-11-08T11:26:09+00:00" + "time": "2018-04-18T13:41:53+00:00" }, { "name": "phpunit/phpunit-mock-objects", - "version": "4.0.4", + "version": "6.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "2f789b59ab89669015ad984afa350c4ec577ade0" + "reference": "70c740bde8fd9ea9ea295be1cd875dd7b267e157" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/2f789b59ab89669015ad984afa350c4ec577ade0", - "reference": "2f789b59ab89669015ad984afa350c4ec577ade0", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/70c740bde8fd9ea9ea295be1cd875dd7b267e157", + "reference": "70c740bde8fd9ea9ea295be1cd875dd7b267e157", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.5", - "php": "^7.0", + "php": "^7.1", "phpunit/php-text-template": "^1.2.1", - "sebastian/exporter": "^3.0" - }, - "conflict": { - "phpunit/phpunit": "<6.0" + "sebastian/exporter": "^3.1" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^7.0" }, "suggest": { "ext-soap": "*" @@ -2596,7 +2711,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0.x-dev" + "dev-master": "6.1-dev" } }, "autoload": { @@ -2611,7 +2726,7 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -2621,7 +2736,7 @@ "mock", "xunit" ], - "time": "2017-08-03T14:08:16+00:00" + "time": "2018-04-11T04:50:36+00:00" }, { "name": "psr/http-message", @@ -2720,21 +2835,21 @@ }, { "name": "sebastian/comparator", - "version": "2.1.1", + "version": "2.1.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "b11c729f95109b56a0fe9650c6a63a0fcd8c439f" + "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/b11c729f95109b56a0fe9650c6a63a0fcd8c439f", - "reference": "b11c729f95109b56a0fe9650c6a63a0fcd8c439f", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9", + "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9", "shasum": "" }, "require": { "php": "^7.0", - "sebastian/diff": "^2.0", + "sebastian/diff": "^2.0 || ^3.0", "sebastian/exporter": "^3.1" }, "require-dev": { @@ -2780,32 +2895,33 @@ "compare", "equality" ], - "time": "2017-12-22T14:50:35+00:00" + "time": "2018-02-01T13:46:46+00:00" }, { "name": "sebastian/diff", - "version": "2.0.1", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd" + "reference": "e09160918c66281713f1c324c1f4c4c3037ba1e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", - "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/e09160918c66281713f1c324c1f4c4c3037ba1e8", + "reference": "e09160918c66281713f1c324c1f4c4c3037ba1e8", "shasum": "" }, "require": { - "php": "^7.0" + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "^6.2" + "phpunit/phpunit": "^7.0", + "symfony/process": "^2 || ^3.3 || ^4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -2830,9 +2946,12 @@ "description": "Diff implementation", "homepage": "https://github.com/sebastianbergmann/diff", "keywords": [ - "diff" + "diff", + "udiff", + "unidiff", + "unified diff" ], - "time": "2017-08-03T08:09:46+00:00" + "time": "2018-02-01T13:45:15+00:00" }, { "name": "sebastian/environment", @@ -3312,21 +3431,23 @@ }, { "name": "sweetchuck/codeception-module-robo-task-runner", - "version": "v0.0.3", + "version": "v0.4.0", "source": { "type": "git", "url": "https://github.com/Sweetchuck/codeception-module-robo-task-runner.git", - "reference": "5251aca23291e02c341332e8baeb78759320d6f6" + "reference": "bcd61c6a52afc4a168e16d6cefe3f44e503c2bc0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Sweetchuck/codeception-module-robo-task-runner/zipball/5251aca23291e02c341332e8baeb78759320d6f6", - "reference": "5251aca23291e02c341332e8baeb78759320d6f6", + "url": "https://api.github.com/repos/Sweetchuck/codeception-module-robo-task-runner/zipball/bcd61c6a52afc4a168e16d6cefe3f44e503c2bc0", + "reference": "bcd61c6a52afc4a168e16d6cefe3f44e503c2bc0", "shasum": "" }, "require": { "codeception/codeception": "^2.3", - "consolidation/robo": "^1.1" + "consolidation/robo": "^1.1", + "php": ">=7.1", + "symfony/process": "^4.0" }, "require-dev": { "squizlabs/php_codesniffer": "^3.0", @@ -3335,15 +3456,16 @@ "type": "library", "autoload": { "psr-4": { - "Sweetchuck\\Codeception\\Module\\RoboTaskRunner\\": "src/" + "Sweetchuck\\Codeception\\Module\\RoboTaskRunner\\": "src/", + "Sweetchuck\\Codeception\\Module\\RoboTaskRunner\\Tests\\Unit\\": "tests/unit/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "GPL-2.0" + "GPL-2.0-or-later" ], "description": "Runs a Robo task.", - "time": "2018-01-13T14:32:23+00:00" + "time": "2018-05-01T21:13:58+00:00" }, { "name": "sweetchuck/git-hooks", @@ -3388,29 +3510,30 @@ }, { "name": "sweetchuck/lint-report", - "version": "v0.0.7", + "version": "v0.0.9", "source": { "type": "git", "url": "https://github.com/Sweetchuck/lint-report.git", - "reference": "a79ad3d0b6e48a98aae86d7d3d2f7e7addbb962b" + "reference": "c5465b3b69207ca3b04ec5b1b956704c02ccc055" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Sweetchuck/lint-report/zipball/a79ad3d0b6e48a98aae86d7d3d2f7e7addbb962b", - "reference": "a79ad3d0b6e48a98aae86d7d3d2f7e7addbb962b", + "url": "https://api.github.com/repos/Sweetchuck/lint-report/zipball/c5465b3b69207ca3b04ec5b1b956704c02ccc055", + "reference": "c5465b3b69207ca3b04ec5b1b956704c02ccc055", "shasum": "" }, "require": { "league/container": "^2.2", "php": ">=7.1", - "symfony/console": "^2.8 || ^3.1", - "symfony/filesystem": "^2.8 || ^3.1", - "symfony/yaml": "^2.8 || ^3.1" + "symfony/console": "^3.1 || ^4.0", + "symfony/filesystem": "^3.1 || ^4.0", + "symfony/yaml": "^3.1 || ^4.0", + "webmozart/path-util": "^2.3" }, "require-dev": { "codeception/codeception": "^2.2", - "squizlabs/php_codesniffer": "2.6.2", - "sweetchuck/git-hooks": "^0.0.10" + "squizlabs/php_codesniffer": "^2.6", + "sweetchuck/git-hooks": "^0.0" }, "type": "library", "autoload": { @@ -3420,23 +3543,23 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "GPL-2.0+" + "GPL-3.0-or-later" ], "description": "Generate reports from lint results", - "time": "2017-10-22T18:13:27+00:00" + "time": "2018-04-15T13:00:52+00:00" }, { "name": "sweetchuck/robo-git", - "version": "v0.0.8", + "version": "v0.0.9", "source": { "type": "git", "url": "https://github.com/Sweetchuck/robo-git.git", - "reference": "cb7bdf9fa0056f7462172b205e9c7b8e8b1d4a7f" + "reference": "030a06b08262048d09d7e96a9c76fd9c970f2e29" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Sweetchuck/robo-git/zipball/cb7bdf9fa0056f7462172b205e9c7b8e8b1d4a7f", - "reference": "cb7bdf9fa0056f7462172b205e9c7b8e8b1d4a7f", + "url": "https://api.github.com/repos/Sweetchuck/robo-git/zipball/030a06b08262048d09d7e96a9c76fd9c970f2e29", + "reference": "030a06b08262048d09d7e96a9c76fd9c970f2e29", "shasum": "" }, "require": { @@ -3459,23 +3582,23 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "GPL-2.0" + "GPL-2.0-or-later" ], "description": "Robo task to read the content of the staged files", - "time": "2017-12-04T13:28:16+00:00" + "time": "2018-02-18T12:59:04+00:00" }, { "name": "sweetchuck/robo-phpcs", - "version": "v0.0.17", + "version": "v0.0.19", "source": { "type": "git", "url": "https://github.com/Sweetchuck/robo-phpcs.git", - "reference": "31e919ef0ef62b853d00517a5c8433509912789a" + "reference": "f23339752026ffed568429ebf1f1f50a557c71c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Sweetchuck/robo-phpcs/zipball/31e919ef0ef62b853d00517a5c8433509912789a", - "reference": "31e919ef0ef62b853d00517a5c8433509912789a", + "url": "https://api.github.com/repos/Sweetchuck/robo-phpcs/zipball/f23339752026ffed568429ebf1f1f50a557c71c7", + "reference": "f23339752026ffed568429ebf1f1f50a557c71c7", "shasum": "" }, "require": { @@ -3486,11 +3609,12 @@ }, "require-dev": { "codeception/codeception": "^2.2", + "cweagans/composer-patches": "^1.6", "mikey179/vfsstream": "^1.6", "sweetchuck/codeception-module-robo-task-runner": "^0.0", "sweetchuck/git-hooks": "^0.0", "sweetchuck/robo-git": "^0.0", - "symfony/yaml": "^2.8 || ^3.1", + "symfony/yaml": "^3.1 || ^4.0", "webmozart/path-util": "^2.3" }, "type": "library", @@ -3501,23 +3625,23 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "GPL-2.0+" + "GPL-2.0-or-later" ], "description": "Robo task wrapper for PHPCS", - "time": "2017-12-07T21:11:17+00:00" + "time": "2018-03-15T17:22:48+00:00" }, { "name": "symfony/browser-kit", - "version": "v4.0.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", - "reference": "fee0fcd501304b1c3190f6293f650cceb738a353" + "reference": "c43bfa0182363b3fd64331b5e64e467349ff4670" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/browser-kit/zipball/fee0fcd501304b1c3190f6293f650cceb738a353", - "reference": "fee0fcd501304b1c3190f6293f650cceb738a353", + "url": "https://api.github.com/repos/symfony/browser-kit/zipball/c43bfa0182363b3fd64331b5e64e467349ff4670", + "reference": "c43bfa0182363b3fd64331b5e64e467349ff4670", "shasum": "" }, "require": { @@ -3561,20 +3685,20 @@ ], "description": "Symfony BrowserKit Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:38:00+00:00" + "time": "2018-03-19T22:35:49+00:00" }, { "name": "symfony/css-selector", - "version": "v4.0.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "f97600434e3141ef3cbb9ea42cf500fba88022b7" + "reference": "03f965583147957f1ecbad7ea1c9d6fd5e525ec2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/f97600434e3141ef3cbb9ea42cf500fba88022b7", - "reference": "f97600434e3141ef3cbb9ea42cf500fba88022b7", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/03f965583147957f1ecbad7ea1c9d6fd5e525ec2", + "reference": "03f965583147957f1ecbad7ea1c9d6fd5e525ec2", "shasum": "" }, "require": { @@ -3614,20 +3738,20 @@ ], "description": "Symfony CssSelector Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:38:00+00:00" + "time": "2018-03-19T22:35:49+00:00" }, { "name": "symfony/dom-crawler", - "version": "v4.0.3", + "version": "v4.0.9", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "39b785e1cf28e9f21bb601a5d62c4992a8e8a290" + "reference": "d6c04c7532535b5e0b63db45b543cd60818e0fbc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/39b785e1cf28e9f21bb601a5d62c4992a8e8a290", - "reference": "39b785e1cf28e9f21bb601a5d62c4992a8e8a290", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/d6c04c7532535b5e0b63db45b543cd60818e0fbc", + "reference": "d6c04c7532535b5e0b63db45b543cd60818e0fbc", "shasum": "" }, "require": { @@ -3670,7 +3794,7 @@ ], "description": "Symfony DomCrawler Component", "homepage": "https://symfony.com", - "time": "2018-01-03T07:38:00+00:00" + "time": "2018-03-19T22:35:49+00:00" }, { "name": "theseer/tokenizer", @@ -3711,102 +3835,6 @@ ], "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "time": "2017-04-07T12:08:54+00:00" - }, - { - "name": "webmozart/assert", - "version": "1.2.0", - "source": { - "type": "git", - "url": "https://github.com/webmozart/assert.git", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.6", - "sebastian/version": "^1.0.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "time": "2016-11-23T20:04:58+00:00" - }, - { - "name": "webmozart/path-util", - "version": "2.3.0", - "source": { - "type": "git", - "url": "https://github.com/webmozart/path-util.git", - "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725", - "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "webmozart/assert": "~1.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.6", - "sebastian/version": "^1.0.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\PathUtil\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.", - "time": "2015-12-17T08:42:14+00:00" } ], "aliases": [], diff --git a/src/PhpmdTaskLoader.php b/src/PhpmdTaskLoader.php index 2900ec0..91573f0 100644 --- a/src/PhpmdTaskLoader.php +++ b/src/PhpmdTaskLoader.php @@ -2,6 +2,7 @@ namespace Sweetchuck\Robo\PhpMessDetector; +use League\Container\ContainerAwareInterface; use Robo\Collection\CollectionBuilder; trait PhpmdTaskLoader @@ -13,6 +14,12 @@ protected function taskPhpmdVersion(array $options = []): CollectionBuilder { /** @var \Sweetchuck\Robo\PhpMessDetector\Task\PhpmdVersionTask $task */ $task = $this->task(Task\PhpmdVersionTask::class); + if ($this instanceof ContainerAwareInterface) { + $container = $this->getContainer(); + if ($container) { + $task->setContainer($this->getContainer()); + } + } return $task->setOptions($options); } @@ -24,6 +31,12 @@ protected function taskPhpmdLintFiles(array $options = []): CollectionBuilder { /** @var \Sweetchuck\Robo\PhpMessDetector\Task\PhpmdLintFilesTask $task */ $task = $this->task(Task\PhpmdLintFilesTask::class); + if ($this instanceof ContainerAwareInterface) { + $container = $this->getContainer(); + if ($container) { + $task->setContainer($this->getContainer()); + } + } return $task->setOptions($options); } diff --git a/src/Task/PhpmdCliTask.php b/src/Task/PhpmdCliTask.php index a34284c..898e01a 100644 --- a/src/Task/PhpmdCliTask.php +++ b/src/Task/PhpmdCliTask.php @@ -2,17 +2,22 @@ namespace Sweetchuck\Robo\PhpMessDetector\Task; +use League\Container\ContainerAwareInterface; +use League\Container\ContainerAwareTrait; use Robo\Common\OutputAwareTrait; use Robo\Contract\CommandInterface; use Robo\Contract\OutputAwareInterface; use Stringy\StaticStringy; use Sweetchuck\Robo\PhpMessDetector\Utils; +use Symfony\Component\Console\Helper\ProcessHelper; use Symfony\Component\Process\Process; abstract class PhpmdCliTask extends PhpmdBaseTask implements CommandInterface, + ContainerAwareInterface, OutputAwareInterface { + use ContainerAwareTrait; use OutputAwareTrait; /** @@ -20,11 +25,6 @@ abstract class PhpmdCliTask extends PhpmdBaseTask implements */ protected $command = ''; - /** - * @var string - */ - protected $processClass = Process::class; - /** * @var string */ @@ -202,11 +202,16 @@ protected function runHeader() */ protected function runDoIt() { - /** @var \Symfony\Component\Process\Process $process */ - $process = new $this->processClass($this->command); - $this->processExitCode = $process->run(function ($type, $data) { - $this->processRunCallback($type, $data); - }); + $process = $this + ->getProcessHelper() + ->run( + $this->output(), + $this->command, + null, + $this->getProcessRunCallbackWrapper() + ); + + $this->processExitCode = $process->getExitCode(); $this->processStdOutput = $process->getOutput(); $this->processStdError = $process->getErrorOutput(); @@ -237,6 +242,16 @@ protected function getTaskResultMessage(): string return $this->processStdError; } + /** + * @return \Closure + */ + protected function getProcessRunCallbackWrapper() + { + return function (string $type, string $data): void { + $this->processRunCallback($type, $data); + }; + } + protected function processRunCallback(string $type, string $data): void { switch ($type) { @@ -265,4 +280,14 @@ protected function findPhpmdExecutable(): string return 'phpmd'; } + + protected function getProcessHelper(): ProcessHelper + { + // @todo Check that everything is available. + return $this + ->getContainer() + ->get('application') + ->getHelperSet() + ->get('process'); + } } diff --git a/tests/_support/Helper/Dummy/DummyOutput.php b/tests/_support/Helper/Dummy/DummyOutput.php new file mode 100644 index 0000000..250cac2 --- /dev/null +++ b/tests/_support/Helper/Dummy/DummyOutput.php @@ -0,0 +1,50 @@ +instanceId = static::$instanceCounter++; + + if (empty($config['stdErr'])) { + $config['stdErr'] = true; + $this->setErrorOutput(new static($config)); + + return; + } + + $this->setErrorOutput($this); + } + + /** + * {@inheritdoc} + */ + protected function doWrite($message, $newline) + { + $this->output .= $message . ($newline ? "\n" : ''); + } +} diff --git a/tests/acceptance/Task/PhpmdLintFilesTaskCest.php b/tests/acceptance/Task/PhpmdLintFilesTaskCest.php index 3e09008..827e287 100644 --- a/tests/acceptance/Task/PhpmdLintFilesTaskCest.php +++ b/tests/acceptance/Task/PhpmdLintFilesTaskCest.php @@ -34,6 +34,6 @@ public function runPhpmdLintFiles(AcceptanceTester $tester) $tester->assertEquals(0, $exitCode); $tester->assertEquals('', $stdOutput); - $tester->assertEquals($expectedStdError, $stdError); + $tester->assertContains($expectedStdError, $stdError); } } diff --git a/tests/unit/Task/PhpmdLintFilesTaskTest.php b/tests/unit/Task/PhpmdLintFilesTaskTest.php index f54257f..dc4e7db 100644 --- a/tests/unit/Task/PhpmdLintFilesTaskTest.php +++ b/tests/unit/Task/PhpmdLintFilesTaskTest.php @@ -3,11 +3,12 @@ namespace Sweetchuck\Robo\PhpMessDetector\Tests\Unit\Task; use Codeception\Test\Unit; -use Codeception\Util\Stub; use org\bovigo\vfs\vfsStream; use Robo\Robo; -use Sweetchuck\Codeception\Module\RoboTaskRunner\DummyProcess; use Sweetchuck\Robo\PhpMessDetector\Task\PhpmdLintFilesTask; +use Sweetchuck\Robo\PhpMessDetector\Test\Helper\Dummy\DummyOutput; +use Symfony\Component\Console\Helper\ProcessHelper; +use Symfony\Component\Process\Process; use Webmozart\PathUtil\Path; class PhpmdLintFilesTaskTest extends Unit @@ -154,9 +155,7 @@ public function casesRunSuccess(): array return [ 'basic' => [ - [ - 'exitCode' => 0, - ], + [], [ 'workingDirectory' => $vfs->url(), 'reportFile' => __FUNCTION__ . '/basic/foo/phpmd.txt', @@ -170,25 +169,46 @@ public function casesRunSuccess(): array */ public function testRunSuccess(array $expected, array $options) { + $expected += [ + 'exitCode' => 0, + 'stdOutput' => '', + 'stdError' => '', + ]; + $container = Robo::createDefaultContainer(); Robo::setContainer($container); + $process = $this->make( + Process::class, + [ + 'run' => $expected['exitCode'], + 'getExitCode' => $expected['exitCode'], + 'getOutput' => $expected['stdOutput'], + 'getErrorOutput' => $expected['stdError'], + ] + ); + + $processHelper = $this->make( + ProcessHelper::class, + [ + 'run' => $process, + ] + ); + /** @var \Sweetchuck\Robo\PhpMessDetector\Task\PhpmdLintFilesTask $task */ - $task = Stub::construct( + $task = $this->construct( PhpmdLintFilesTask::class, [], [ - 'processClass' => DummyProcess::class, + 'getProcessHelper' => $processHelper, ] ); - $task->setOptions($options); - $processIndex = count(DummyProcess::$instances); - DummyProcess::$prophecy[$processIndex] = [ - 'exitCode' => 0, - 'stdOutput' => '', - 'stdError' => '', - ]; + $dummyOutputConfig = []; + $dummyOutput = new DummyOutput($dummyOutputConfig); + + $task->setOutput($dummyOutput); + $task->setOptions($options); $result = $task->run(); diff --git a/tests/unit/Task/PhpmdVersionTaskTest.php b/tests/unit/Task/PhpmdVersionTaskTest.php index 9acdc2d..64929a5 100644 --- a/tests/unit/Task/PhpmdVersionTaskTest.php +++ b/tests/unit/Task/PhpmdVersionTaskTest.php @@ -3,10 +3,11 @@ namespace Sweetchuck\Robo\PhpMessDetector\Tests\Unit\Task; use Codeception\Test\Unit; -use Codeception\Util\Stub; use Robo\Robo; -use Sweetchuck\Codeception\Module\RoboTaskRunner\DummyProcess; use Sweetchuck\Robo\PhpMessDetector\Task\PhpmdVersionTask; +use Sweetchuck\Robo\PhpMessDetector\Test\Helper\Dummy\DummyOutput; +use Symfony\Component\Console\Helper\ProcessHelper; +use Symfony\Component\Process\Process; class PhpmdVersionTaskTest extends Unit { @@ -69,21 +70,46 @@ public function casesRunSuccess(): array */ public function testRunSuccess(array $expected, array $options, array $std) { + $std += [ + 'exitCode' => 0, + 'stdOutput' => '', + 'stdError' => '', + ]; + $container = Robo::createDefaultContainer(); Robo::setContainer($container); + $process = $this->make( + Process::class, + [ + 'run' => $std['exitCode'], + 'getExitCode' => $std['exitCode'], + 'getOutput' => $std['stdOutput'], + 'getErrorOutput' => $std['stdError'], + ] + ); + + $processHelper = $this->make( + ProcessHelper::class, + [ + 'run' => $process, + ] + ); + /** @var \Sweetchuck\Robo\PhpMessDetector\Task\PhpmdVersionTask $task */ - $task = Stub::construct( + $task = $this->construct( PhpmdVersionTask::class, [], [ - 'processClass' => DummyProcess::class, + 'getProcessHelper' => $processHelper, ] ); - $task->setOptions($options); - $processIndex = count(DummyProcess::$instances); - DummyProcess::$prophecy[$processIndex] = $std; + $dummyOutputConfig = []; + $dummyOutput = new DummyOutput($dummyOutputConfig); + + $task->setOutput($dummyOutput); + $task->setOptions($options); $result = $task->run();