From 03cc2a38a59554033d3c1f33bf8818efe919ed63 Mon Sep 17 00:00:00 2001 From: Vincent Chalamon Date: Tue, 28 May 2019 11:45:57 +0200 Subject: [PATCH] Enable Behat coverage --- .travis.yml | 4 +- api/behat.yml.dist | 1 + api/composer.json | 3 +- api/composer.lock | 844 +++++++++++++++------ api/features/bootstrap/BookContext.php | 14 +- api/features/bootstrap/CoverageContext.php | 59 ++ api/features/demo.feature | 12 - api/symfony.lock | 24 + ci/test | 3 +- docker-compose.yml | 1 + 10 files changed, 718 insertions(+), 247 deletions(-) create mode 100644 api/features/bootstrap/CoverageContext.php delete mode 100644 api/features/demo.feature diff --git a/.travis.yml b/.travis.yml index e5291de4c..950dd76c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,8 +32,8 @@ before_script: - npm install -g react-scripts - while sudo lsof -Pi :5432 -sTCP:LISTEN -t; do sleep 1; done -script: true - #- ./ci/test +script: + - ./ci/test before_deploy: - source ci/before_deploy diff --git a/api/behat.yml.dist b/api/behat.yml.dist index 847b334af..05947703c 100644 --- a/api/behat.yml.dist +++ b/api/behat.yml.dist @@ -9,6 +9,7 @@ default: - Behat\MinkExtension\Context\MinkContext - Behatch\Context\RestContext - Behatch\Context\JsonContext + - CoverageContext extensions: Behat\Symfony2Extension: diff --git a/api/composer.json b/api/composer.json index 9a93b7e32..fe87a8d5d 100755 --- a/api/composer.json +++ b/api/composer.json @@ -17,6 +17,7 @@ "symfony/flex": "^1.1", "symfony/framework-bundle": "4.2.*", "symfony/mercure-bundle": "^0.1.1", + "symfony/translation": "4.2.*", "symfony/yaml": "4.2.*", "webonyx/graphql-php": "^0.13" }, @@ -28,7 +29,7 @@ "behat/symfony2-extension": "^2.1.4", "behatch/contexts": "^3.0", "hautelook/alice-bundle": "^2.3", - "symfony/dotenv": "4.2.*", + "phpunit/php-code-coverage": "^7.0", "symfony/maker-bundle": "^1.11", "symfony/profiler-pack": "^1.0", "symfony/var-dumper": "4.2.*" diff --git a/api/composer.lock b/api/composer.lock index 3a7ed1bd8..24d58c2fb 100644 --- a/api/composer.lock +++ b/api/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c8780d1061ca8ea538c244550f5e0e65", + "content-hash": "4db129722635383645a5aa991b9d6ce0", "packages": [ { "name": "api-platform/api-pack", @@ -2779,7 +2779,7 @@ }, { "name": "symfony/asset", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/asset.git", @@ -2912,16 +2912,16 @@ }, { "name": "symfony/config", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "7f70d79c7a24a94f8e98abb988049403a53d7b31" + "reference": "0e745ead307d5dcd4e163e94a47ec04b1428943f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/7f70d79c7a24a94f8e98abb988049403a53d7b31", - "reference": "7f70d79c7a24a94f8e98abb988049403a53d7b31", + "url": "https://api.github.com/repos/symfony/config/zipball/0e745ead307d5dcd4e163e94a47ec04b1428943f", + "reference": "0e745ead307d5dcd4e163e94a47ec04b1428943f", "shasum": "" }, "require": { @@ -2971,20 +2971,20 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-04-01T14:03:25+00:00" }, { "name": "symfony/console", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "9dc2299a016497f9ee620be94524e6c0af0280a9" + "reference": "e2840bb38bddad7a0feaf85931e38fdcffdb2f81" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/9dc2299a016497f9ee620be94524e6c0af0280a9", - "reference": "9dc2299a016497f9ee620be94524e6c0af0280a9", + "url": "https://api.github.com/repos/symfony/console/zipball/e2840bb38bddad7a0feaf85931e38fdcffdb2f81", + "reference": "e2840bb38bddad7a0feaf85931e38fdcffdb2f81", "shasum": "" }, "require": { @@ -3043,40 +3043,51 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-04-08T14:23:48+00:00" }, { "name": "symfony/contracts", - "version": "v1.0.2", + "version": "v1.1.1", "source": { "type": "git", "url": "https://github.com/symfony/contracts.git", - "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf" + "reference": "b6e291a08e6b002fb56aa6f3e2a2beb6674d2b2f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf", - "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf", + "url": "https://api.github.com/repos/symfony/contracts/zipball/b6e291a08e6b002fb56aa6f3e2a2beb6674d2b2f", + "reference": "b6e291a08e6b002fb56aa6f3e2a2beb6674d2b2f", "shasum": "" }, "require": { "php": "^7.1.3" }, + "replace": { + "symfony/cache-contracts": "self.version", + "symfony/event-dispatcher-contracts": "self.version", + "symfony/http-client-contracts": "self.version", + "symfony/service-contracts": "self.version", + "symfony/translation-contracts": "self.version" + }, "require-dev": { "psr/cache": "^1.0", - "psr/container": "^1.0" + "psr/container": "^1.0", + "symfony/polyfill-intl-idn": "^1.10" }, "suggest": { "psr/cache": "When using the Cache contracts", "psr/container": "When using the Service contracts", - "symfony/cache-contracts-implementation": "", - "symfony/service-contracts-implementation": "", - "symfony/translation-contracts-implementation": "" + "psr/event-dispatcher": "When using the EventDispatcher contracts", + "symfony/cache-implementation": "", + "symfony/event-dispatcher-implementation": "", + "symfony/http-client-implementation": "", + "symfony/service-implementation": "", + "symfony/translation-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "1.1-dev" } }, "autoload": { @@ -3111,20 +3122,20 @@ "interoperability", "standards" ], - "time": "2018-12-05T08:06:11+00:00" + "time": "2019-05-28T07:50:59+00:00" }, { "name": "symfony/debug", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "de73f48977b8eaf7ce22814d66e43a1662cc864f" + "reference": "2d279b6bb1d582dd5740d4d3251ae8c18812ed37" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/de73f48977b8eaf7ce22814d66e43a1662cc864f", - "reference": "de73f48977b8eaf7ce22814d66e43a1662cc864f", + "url": "https://api.github.com/repos/symfony/debug/zipball/2d279b6bb1d582dd5740d4d3251ae8c18812ed37", + "reference": "2d279b6bb1d582dd5740d4d3251ae8c18812ed37", "shasum": "" }, "require": { @@ -3167,7 +3178,7 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2019-03-03T18:11:24+00:00" + "time": "2019-04-11T11:27:41+00:00" }, { "name": "symfony/dependency-injection", @@ -3244,16 +3255,16 @@ }, { "name": "symfony/doctrine-bridge", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/doctrine-bridge.git", - "reference": "94b24ac0b65c0c623d454f0583e1caf4913dee84" + "reference": "7fd19cf9267c45a1920bf6821bb35050c1fa8e5c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/94b24ac0b65c0c623d454f0583e1caf4913dee84", - "reference": "94b24ac0b65c0c623d454f0583e1caf4913dee84", + "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/7fd19cf9267c45a1920bf6821bb35050c1fa8e5c", + "reference": "7fd19cf9267c45a1920bf6821bb35050c1fa8e5c", "shasum": "" }, "require": { @@ -3328,20 +3339,20 @@ ], "description": "Symfony Doctrine Bridge", "homepage": "https://symfony.com", - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-04-15T09:42:18+00:00" }, { "name": "symfony/dotenv", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/dotenv.git", - "reference": "9a3bdfcd7a0d9602754894d76c614d15ca366535" + "reference": "b541d63b83532be55a020db8ed2e50598385a583" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dotenv/zipball/9a3bdfcd7a0d9602754894d76c614d15ca366535", - "reference": "9a3bdfcd7a0d9602754894d76c614d15ca366535", + "url": "https://api.github.com/repos/symfony/dotenv/zipball/b541d63b83532be55a020db8ed2e50598385a583", + "reference": "b541d63b83532be55a020db8ed2e50598385a583", "shasum": "" }, "require": { @@ -3385,20 +3396,20 @@ "env", "environment" ], - "time": "2019-01-24T21:39:51+00:00" + "time": "2019-04-01T07:32:59+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "3354d2e6af986dd71f68b4e5cf4a933ab58697fb" + "reference": "fbce53cd74ac509cbe74b6f227622650ab759b02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/3354d2e6af986dd71f68b4e5cf4a933ab58697fb", - "reference": "3354d2e6af986dd71f68b4e5cf4a933ab58697fb", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/fbce53cd74ac509cbe74b6f227622650ab759b02", + "reference": "fbce53cd74ac509cbe74b6f227622650ab759b02", "shasum": "" }, "require": { @@ -3449,11 +3460,11 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-04-06T13:51:08+00:00" }, { "name": "symfony/expression-language", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/expression-language.git", @@ -3504,7 +3515,7 @@ }, { "name": "symfony/filesystem", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -3554,16 +3565,16 @@ }, { "name": "symfony/finder", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "267b7002c1b70ea80db0833c3afe05f0fbde580a" + "reference": "e45135658bd6c14b61850bf131c4f09a55133f69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/267b7002c1b70ea80db0833c3afe05f0fbde580a", - "reference": "267b7002c1b70ea80db0833c3afe05f0fbde580a", + "url": "https://api.github.com/repos/symfony/finder/zipball/e45135658bd6c14b61850bf131c4f09a55133f69", + "reference": "e45135658bd6c14b61850bf131c4f09a55133f69", "shasum": "" }, "require": { @@ -3599,7 +3610,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-02-23T15:42:05+00:00" + "time": "2019-04-06T13:51:08+00:00" }, { "name": "symfony/flex", @@ -3652,16 +3663,16 @@ }, { "name": "symfony/framework-bundle", - "version": "v4.2.7", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "98e203073ad9fd05929b52849a300a81bf0d9ec9" + "reference": "2748b12d8c456dbfeae149fc88b3012a333d817b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/98e203073ad9fd05929b52849a300a81bf0d9ec9", - "reference": "98e203073ad9fd05929b52849a300a81bf0d9ec9", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/2748b12d8c456dbfeae149fc88b3012a333d817b", + "reference": "2748b12d8c456dbfeae149fc88b3012a333d817b", "shasum": "" }, "require": { @@ -3677,7 +3688,7 @@ "symfony/http-foundation": "^4.2.5", "symfony/http-kernel": "^4.2", "symfony/polyfill-mbstring": "~1.0", - "symfony/routing": "^4.1" + "symfony/routing": "^4.2.8" }, "conflict": { "phpdocumentor/reflection-docblock": "<3.0", @@ -3767,7 +3778,7 @@ ], "description": "Symfony FrameworkBundle", "homepage": "https://symfony.com", - "time": "2019-04-17T15:01:37+00:00" + "time": "2019-05-01T08:36:31+00:00" }, { "name": "symfony/http-foundation", @@ -3825,16 +3836,16 @@ }, { "name": "symfony/http-kernel", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "895ceccaa8149f9343e6134e607c21da42d73b7a" + "reference": "a7713bc522f1a1cdf0b39f809fa4542523fc3114" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/895ceccaa8149f9343e6134e607c21da42d73b7a", - "reference": "895ceccaa8149f9343e6134e607c21da42d73b7a", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/a7713bc522f1a1cdf0b39f809fa4542523fc3114", + "reference": "a7713bc522f1a1cdf0b39f809fa4542523fc3114", "shasum": "" }, "require": { @@ -3910,11 +3921,11 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2019-03-03T19:38:09+00:00" + "time": "2019-05-01T13:31:08+00:00" }, { "name": "symfony/inflector", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/inflector.git", @@ -4089,16 +4100,16 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494" + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609", + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609", "shasum": "" }, "require": { @@ -4110,7 +4121,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -4144,20 +4155,20 @@ "portable", "shim" ], - "time": "2018-09-21T13:07:52+00:00" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/property-access", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "d5e10532c51db0b657b1e25b2bd70acbcd13bbf9" + "reference": "5440dd2b5373073beee051bd978b58a0f543b192" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/d5e10532c51db0b657b1e25b2bd70acbcd13bbf9", - "reference": "d5e10532c51db0b657b1e25b2bd70acbcd13bbf9", + "url": "https://api.github.com/repos/symfony/property-access/zipball/5440dd2b5373073beee051bd978b58a0f543b192", + "reference": "5440dd2b5373073beee051bd978b58a0f543b192", "shasum": "" }, "require": { @@ -4211,20 +4222,20 @@ "property path", "reflection" ], - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-03-04T09:16:25+00:00" }, { "name": "symfony/property-info", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "c4c27cd4e0c8db6cde9b3612c53ef45734b6219d" + "reference": "22d5dffd43454b5c8b5c1432b6ffef53e9f058e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/c4c27cd4e0c8db6cde9b3612c53ef45734b6219d", - "reference": "c4c27cd4e0c8db6cde9b3612c53ef45734b6219d", + "url": "https://api.github.com/repos/symfony/property-info/zipball/22d5dffd43454b5c8b5c1432b6ffef53e9f058e5", + "reference": "22d5dffd43454b5c8b5c1432b6ffef53e9f058e5", "shasum": "" }, "require": { @@ -4287,20 +4298,20 @@ "type", "validator" ], - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-03-05T10:20:58+00:00" }, { "name": "symfony/routing", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "ff03eae644e6b1e26d4a04b2385fe3a1a7f04e42" + "reference": "f4e43bb0dff56f0f62fa056c82d7eadcdb391bab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/ff03eae644e6b1e26d4a04b2385fe3a1a7f04e42", - "reference": "ff03eae644e6b1e26d4a04b2385fe3a1a7f04e42", + "url": "https://api.github.com/repos/symfony/routing/zipball/f4e43bb0dff56f0f62fa056c82d7eadcdb391bab", + "reference": "f4e43bb0dff56f0f62fa056c82d7eadcdb391bab", "shasum": "" }, "require": { @@ -4323,7 +4334,6 @@ "suggest": { "doctrine/annotations": "For using the annotation loader", "symfony/config": "For using the all-in-one router or any loader", - "symfony/dependency-injection": "For loading routes from a service", "symfony/expression-language": "For using expression matching", "symfony/http-foundation": "For using a Symfony Request object", "symfony/yaml": "For using the YAML loader" @@ -4364,20 +4374,20 @@ "uri", "url" ], - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-04-27T09:38:08+00:00" }, { "name": "symfony/security-bundle", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/security-bundle.git", - "reference": "d382808b206f01235053d6d1981beef325a7345b" + "reference": "5d3f378675a244a515dc8fdb96e96b9780639672" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-bundle/zipball/d382808b206f01235053d6d1981beef325a7345b", - "reference": "d382808b206f01235053d6d1981beef325a7345b", + "url": "https://api.github.com/repos/symfony/security-bundle/zipball/5d3f378675a244a515dc8fdb96e96b9780639672", + "reference": "5d3f378675a244a515dc8fdb96e96b9780639672", "shasum": "" }, "require": { @@ -4450,20 +4460,20 @@ ], "description": "Symfony SecurityBundle", "homepage": "https://symfony.com", - "time": "2019-03-03T18:11:24+00:00" + "time": "2019-04-11T11:58:13+00:00" }, { "name": "symfony/security-core", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/security-core.git", - "reference": "8a32f547a63bcc4b41c6b55c457d9e14f13fbd11" + "reference": "6aca891262f6bd467159a972ca9f06c3ff9b2343" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-core/zipball/8a32f547a63bcc4b41c6b55c457d9e14f13fbd11", - "reference": "8a32f547a63bcc4b41c6b55c457d9e14f13fbd11", + "url": "https://api.github.com/repos/symfony/security-core/zipball/6aca891262f6bd467159a972ca9f06c3ff9b2343", + "reference": "6aca891262f6bd467159a972ca9f06c3ff9b2343", "shasum": "" }, "require": { @@ -4517,11 +4527,11 @@ ], "description": "Symfony Security Component - Core Library", "homepage": "https://symfony.com", - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-04-28T07:09:27+00:00" }, { "name": "symfony/security-csrf", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/security-csrf.git", @@ -4580,16 +4590,16 @@ }, { "name": "symfony/security-guard", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/security-guard.git", - "reference": "78fee521b26a6395b62bc301b0e07c7b47a8cb0c" + "reference": "1313f51e126e03e13aaf83d471f087647701e0ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-guard/zipball/78fee521b26a6395b62bc301b0e07c7b47a8cb0c", - "reference": "78fee521b26a6395b62bc301b0e07c7b47a8cb0c", + "url": "https://api.github.com/repos/symfony/security-guard/zipball/1313f51e126e03e13aaf83d471f087647701e0ac", + "reference": "1313f51e126e03e13aaf83d471f087647701e0ac", "shasum": "" }, "require": { @@ -4630,7 +4640,7 @@ ], "description": "Symfony Security Component - Guard", "homepage": "https://symfony.com", - "time": "2019-02-19T18:28:05+00:00" + "time": "2019-04-01T07:32:59+00:00" }, { "name": "symfony/security-http", @@ -4700,16 +4710,16 @@ }, { "name": "symfony/serializer", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "705ac7bdb9c920465b1c64fb6c9fc9ce9fe064ae" + "reference": "543bf3d7d4be76e878dc78c82328e978d57dd44d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/705ac7bdb9c920465b1c64fb6c9fc9ce9fe064ae", - "reference": "705ac7bdb9c920465b1c64fb6c9fc9ce9fe064ae", + "url": "https://api.github.com/repos/symfony/serializer/zipball/543bf3d7d4be76e878dc78c82328e978d57dd44d", + "reference": "543bf3d7d4be76e878dc78c82328e978d57dd44d", "shasum": "" }, "require": { @@ -4732,7 +4742,7 @@ "symfony/dependency-injection": "~3.4|~4.0", "symfony/http-foundation": "~3.4|~4.0", "symfony/property-access": "~3.4|~4.0", - "symfony/property-info": "~3.4|~4.0", + "symfony/property-info": "^3.4.13|~4.0", "symfony/validator": "~3.4|~4.0", "symfony/yaml": "~3.4|~4.0" }, @@ -4776,11 +4786,11 @@ ], "description": "Symfony Serializer Component", "homepage": "https://symfony.com", - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-04-28T07:09:27+00:00" }, { "name": "symfony/stopwatch", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", @@ -4828,24 +4838,99 @@ "homepage": "https://symfony.com", "time": "2019-01-16T20:31:39+00:00" }, + { + "name": "symfony/translation", + "version": "v4.2.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "181a426dd129cb496f12d7e7555f6d0b37a7615b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/181a426dd129cb496f12d7e7555f6d0b37a7615b", + "reference": "181a426dd129cb496f12d7e7555f6d0b37a7615b", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/contracts": "^1.0.2", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/config": "<3.4", + "symfony/dependency-injection": "<3.4", + "symfony/yaml": "<3.4" + }, + "provide": { + "symfony/translation-contracts-implementation": "1.0" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~3.4|~4.0", + "symfony/console": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/finder": "~2.8|~3.0|~4.0", + "symfony/http-kernel": "~3.4|~4.0", + "symfony/intl": "~3.4|~4.0", + "symfony/var-dumper": "~3.4|~4.0", + "symfony/yaml": "~3.4|~4.0" + }, + "suggest": { + "psr/log-implementation": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "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 Translation Component", + "homepage": "https://symfony.com", + "time": "2019-05-01T12:55:36+00:00" + }, { "name": "symfony/twig-bridge", - "version": "v4.2.4", + "version": "v4.2.7", "source": { "type": "git", "url": "https://github.com/symfony/twig-bridge.git", - "reference": "ac6f9fa8a49ddc0afb52e59808d15f98e9a84bcf" + "reference": "db70a233d660b96a883150d68fa0a5a882f2ba89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/ac6f9fa8a49ddc0afb52e59808d15f98e9a84bcf", - "reference": "ac6f9fa8a49ddc0afb52e59808d15f98e9a84bcf", + "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/db70a233d660b96a883150d68fa0a5a882f2ba89", + "reference": "db70a233d660b96a883150d68fa0a5a882f2ba89", "shasum": "" }, "require": { "php": "^7.1.3", "symfony/contracts": "^1.0.2", - "twig/twig": "^1.37.1|^2.6.2" + "twig/twig": "^1.38.1|^2.7.1" }, "conflict": { "symfony/console": "<3.4", @@ -4918,20 +5003,20 @@ ], "description": "Symfony Twig Bridge", "homepage": "https://symfony.com", - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-04-12T13:50:35+00:00" }, { "name": "symfony/twig-bundle", - "version": "v4.2.4", + "version": "v4.2.7", "source": { "type": "git", "url": "https://github.com/symfony/twig-bundle.git", - "reference": "eb32e41993f59de82406e918a55b503b2374b991" + "reference": "321d5bd0608f3cf34062c47edfe6079556f6d6f1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bundle/zipball/eb32e41993f59de82406e918a55b503b2374b991", - "reference": "eb32e41993f59de82406e918a55b503b2374b991", + "url": "https://api.github.com/repos/symfony/twig-bundle/zipball/321d5bd0608f3cf34062c47edfe6079556f6d6f1", + "reference": "321d5bd0608f3cf34062c47edfe6079556f6d6f1", "shasum": "" }, "require": { @@ -4952,7 +5037,7 @@ "doctrine/annotations": "~1.0", "doctrine/cache": "~1.0", "symfony/asset": "~3.4|~4.0", - "symfony/dependency-injection": "~4.1", + "symfony/dependency-injection": "^4.2.5", "symfony/expression-language": "~3.4|~4.0", "symfony/finder": "~3.4|~4.0", "symfony/form": "~3.4|~4.0", @@ -4994,20 +5079,20 @@ ], "description": "Symfony TwigBundle", "homepage": "https://symfony.com", - "time": "2019-01-16T20:35:37+00:00" + "time": "2019-04-11T11:27:41+00:00" }, { "name": "symfony/validator", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "ba50866242d992f0dd818e2c34c5088f163c974d" + "reference": "0d83ae4c4c5418522f05a25e4597719043b45f40" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/ba50866242d992f0dd818e2c34c5088f163c974d", - "reference": "ba50866242d992f0dd818e2c34c5088f163c974d", + "url": "https://api.github.com/repos/symfony/validator/zipball/0d83ae4c4c5418522f05a25e4597719043b45f40", + "reference": "0d83ae4c4c5418522f05a25e4597719043b45f40", "shasum": "" }, "require": { @@ -5083,20 +5168,20 @@ ], "description": "Symfony Validator Component", "homepage": "https://symfony.com", - "time": "2019-03-03T18:11:24+00:00" + "time": "2019-05-01T05:55:04+00:00" }, { "name": "symfony/var-exporter", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "d8bf4424c232b55f4c1816037d3077a89258557e" + "reference": "57e00f3e0a3deee65b67cf971455b98afeacca46" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/d8bf4424c232b55f4c1816037d3077a89258557e", - "reference": "d8bf4424c232b55f4c1816037d3077a89258557e", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/57e00f3e0a3deee65b67cf971455b98afeacca46", + "reference": "57e00f3e0a3deee65b67cf971455b98afeacca46", "shasum": "" }, "require": { @@ -5143,11 +5228,11 @@ "instantiate", "serialize" ], - "time": "2019-01-16T20:35:37+00:00" + "time": "2019-04-09T20:09:28+00:00" }, { "name": "symfony/web-link", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/web-link.git", @@ -5218,16 +5303,16 @@ }, { "name": "symfony/yaml", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "761fa560a937fd7686e5274ff89dcfa87a5047df" + "reference": "6712daf03ee25b53abb14e7e8e0ede1a770efdb1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/761fa560a937fd7686e5274ff89dcfa87a5047df", - "reference": "761fa560a937fd7686e5274ff89dcfa87a5047df", + "url": "https://api.github.com/repos/symfony/yaml/zipball/6712daf03ee25b53abb14e7e8e0ede1a770efdb1", + "reference": "6712daf03ee25b53abb14e7e8e0ede1a770efdb1", "shasum": "" }, "require": { @@ -5273,7 +5358,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-03-30T15:58:42+00:00" }, { "name": "twig/twig", @@ -6535,6 +6620,254 @@ ], "time": "2019-02-16T20:54:15+00:00" }, + { + "name": "phpunit/php-code-coverage", + "version": "7.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "0317a769a81845c390e19684d9ba25d7f6aa4707" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/0317a769a81845c390e19684d9ba25d7f6aa4707", + "reference": "0317a769a81845c390e19684d9ba25d7f6aa4707", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^7.2", + "phpunit/php-file-iterator": "^2.0.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-token-stream": "^3.0.1", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^4.1", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.0" + }, + "suggest": { + "ext-xdebug": "^2.6.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "time": "2019-02-26T07:38:26+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "050bedf145a257b1ff02746c31894800e5122946" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946", + "reference": "050bedf145a257b1ff02746c31894800e5122946", + "shasum": "" + }, + "require": { + "php": "^7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2018-09-13T20:33:42+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "c99e3be9d3e85f60646f152f9002d46ed7770d18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/c99e3be9d3e85f60646f152f9002d46ed7770d18", + "reference": "c99e3be9d3e85f60646f152f9002d46ed7770d18", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "time": "2018-10-30T05:52:18+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "time": "2017-03-04T06:30:41+00:00" + }, { "name": "sebastian/comparator", "version": "3.0.2", @@ -6655,6 +6988,59 @@ ], "time": "2019-02-04T06:01:07+00:00" }, + { + "name": "sebastian/environment", + "version": "4.2.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "f2a2c8e1c97c11ace607a7a667d73d47c19fe404" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/f2a2c8e1c97c11ace607a7a667d73d47c19fe404", + "reference": "f2a2c8e1c97c11ace607a7a667d73d47c19fe404", + "shasum": "" + }, + "require": { + "php": "^7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2019-05-05T09:05:15+00:00" + }, { "name": "sebastian/exporter", "version": "3.1.0", @@ -6775,18 +7161,61 @@ "homepage": "http://www.github.com/sebastianbergmann/recursion-context", "time": "2017-03-03T06:23:57+00:00" }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" + }, { "name": "symfony/browser-kit", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", - "reference": "61d85c5af2fc058014c7c89504c3944e73a086f0" + "reference": "c09c18cca96d7067152f78956faf55346c338283" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/browser-kit/zipball/61d85c5af2fc058014c7c89504c3944e73a086f0", - "reference": "61d85c5af2fc058014c7c89504c3944e73a086f0", + "url": "https://api.github.com/repos/symfony/browser-kit/zipball/c09c18cca96d7067152f78956faf55346c338283", + "reference": "c09c18cca96d7067152f78956faf55346c338283", "shasum": "" }, "require": { @@ -6830,7 +7259,7 @@ ], "description": "Symfony BrowserKit Component", "homepage": "https://symfony.com", - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-04-07T09:56:43+00:00" }, { "name": "symfony/class-loader", @@ -6943,7 +7372,7 @@ }, { "name": "symfony/dom-crawler", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", @@ -7092,91 +7521,18 @@ "description": "A pack for the Symfony web profiler", "time": "2018-12-10T12:11:44+00:00" }, - { - "name": "symfony/translation", - "version": "v4.2.4", - "source": { - "type": "git", - "url": "https://github.com/symfony/translation.git", - "reference": "748464177a77011f8f4cdd076773862ce4915f8f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/748464177a77011f8f4cdd076773862ce4915f8f", - "reference": "748464177a77011f8f4cdd076773862ce4915f8f", - "shasum": "" - }, - "require": { - "php": "^7.1.3", - "symfony/contracts": "^1.0.2", - "symfony/polyfill-mbstring": "~1.0" - }, - "conflict": { - "symfony/config": "<3.4", - "symfony/dependency-injection": "<3.4", - "symfony/yaml": "<3.4" - }, - "provide": { - "symfony/translation-contracts-implementation": "1.0" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~3.4|~4.0", - "symfony/console": "~3.4|~4.0", - "symfony/dependency-injection": "~3.4|~4.0", - "symfony/finder": "~2.8|~3.0|~4.0", - "symfony/intl": "~3.4|~4.0", - "symfony/yaml": "~3.4|~4.0" - }, - "suggest": { - "psr/log-implementation": "To use logging capability in translator", - "symfony/config": "", - "symfony/yaml": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.2-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Translation\\": "" - }, - "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 Translation Component", - "homepage": "https://symfony.com", - "time": "2019-02-27T03:31:50+00:00" - }, { "name": "symfony/var-dumper", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "9f87189ac10b42edf7fb8edc846f1937c6d157cf" + "reference": "3c4084cb1537c0e2ad41aad622bbf55a44a5c9ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/9f87189ac10b42edf7fb8edc846f1937c6d157cf", - "reference": "9f87189ac10b42edf7fb8edc846f1937c6d157cf", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/3c4084cb1537c0e2ad41aad622bbf55a44a5c9ce", + "reference": "3c4084cb1537c0e2ad41aad622bbf55a44a5c9ce", "shasum": "" }, "require": { @@ -7239,26 +7595,26 @@ "debug", "dump" ], - "time": "2019-02-23T15:17:42+00:00" + "time": "2019-05-01T12:55:36+00:00" }, { "name": "symfony/web-profiler-bundle", - "version": "v4.2.4", + "version": "v4.2.8", "source": { "type": "git", "url": "https://github.com/symfony/web-profiler-bundle.git", - "reference": "30c2fa17ddb2bcea4f4c8cb56427a2374533115f" + "reference": "f4c054dad30b46f23aae60ecfedacc08462c47ef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/30c2fa17ddb2bcea4f4c8cb56427a2374533115f", - "reference": "30c2fa17ddb2bcea4f4c8cb56427a2374533115f", + "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/f4c054dad30b46f23aae60ecfedacc08462c47ef", + "reference": "f4c054dad30b46f23aae60ecfedacc08462c47ef", "shasum": "" }, "require": { "php": "^7.1.3", "symfony/config": "^4.2", - "symfony/http-kernel": "~4.2", + "symfony/http-kernel": "^4.2.6", "symfony/routing": "~3.4|~4.0", "symfony/twig-bundle": "~4.2", "symfony/var-dumper": "~3.4|~4.0", @@ -7305,7 +7661,7 @@ ], "description": "Symfony WebProfilerBundle", "homepage": "https://symfony.com", - "time": "2019-02-28T14:59:23+00:00" + "time": "2019-04-27T11:48:17+00:00" }, { "name": "theofidry/alice-data-fixtures", @@ -7385,6 +7741,46 @@ "tests" ], "time": "2018-09-18T19:11:18+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "1c42705be2b6c1de5904f8afacef5895cab44bf8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/1c42705be2b6c1de5904f8afacef5895cab44bf8", + "reference": "1c42705be2b6c1de5904f8afacef5895cab44bf8", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "time": "2019-04-04T09:56:43+00:00" } ], "aliases": [], diff --git a/api/features/bootstrap/BookContext.php b/api/features/bootstrap/BookContext.php index 920223cf4..63cebaa82 100644 --- a/api/features/bootstrap/BookContext.php +++ b/api/features/bootstrap/BookContext.php @@ -101,7 +101,7 @@ public function checkPostBooksResponse() "type": "object", "properties": { "@context": {"pattern": "^/contexts/Book$"}, - "@id": {"pattern": "^/books/[\\w-;=]+$"}, + "@id": {"pattern": "^/books/[\\w\\-;=]+$"}, "@type": {"pattern": "^http://schema.org/Book$"}, "isbn": {"pattern": "^9781782164104$"}, "title": {"pattern": "^Persistence in PHP with the Doctrine ORM$"}, @@ -201,7 +201,7 @@ public function checkGetBooksResponse() { "type": "object", "properties": { - "@id": {"pattern": "^/books/[\\w-;=]+$"}, + "@id": {"pattern": "^/books/[\\w\\-;=]+$"}, "@type": {"pattern": "^http://schema.org/Book$"}, "isbn": {"pattern": "^9781782164104$"}, "title": {"pattern": "^Persistence in PHP with the Doctrine ORM$"}, @@ -322,7 +322,7 @@ public function checkPostReviewssResponse() "type": "object", "properties": { "@context": {"pattern": "^/contexts/Review$"}, - "@id": {"pattern": "^/reviews/[\\w-;=]+$"}, + "@id": {"pattern": "^/reviews/[\\w\\-;=]+$"}, "@type": {"pattern": "^http://schema.org/Review$"}, "body": {"pattern": "^Must have!$"}, "rating": {"type": "integer"}, @@ -332,7 +332,7 @@ public function checkPostReviewssResponse() "book": { "type": "object", "properties": { - "@id": {"pattern": "^/books/[\\w-;=]+$"}, + "@id": {"pattern": "^/books/[\\w\\-;=]+$"}, "@type": {"pattern": "^http://schema.org/Book$"}, "title": {"pattern": "^Persistence in PHP with the Doctrine ORM$"} } @@ -398,7 +398,7 @@ public function checkGetReviewsResponse() { "type": "object", "properties": { - "@id": {"pattern": "^/reviews/[\\w-;=]+$"}, + "@id": {"pattern": "^/reviews/[\\w\\-;=]+$"}, "@type": {"pattern": "^http://schema.org/Review$"}, "body": {"pattern": "^Must have!$"}, "rating": {"type": "integer"}, @@ -408,7 +408,7 @@ public function checkGetReviewsResponse() "book": { "type": "object", "properties": { - "@id": {"pattern": "^/books/[\\w-;=]+$"}, + "@id": {"pattern": "^/books/[\\w\\-;=]+$"}, "@type": {"pattern": "^http://schema.org/Book$"}, "title": {"pattern": "^Persistence in PHP with the Doctrine ORM$"} } @@ -421,7 +421,7 @@ public function checkGetReviewsResponse() "hydra:view": { "type": "object", "properties": { - "@id": {"pattern": "^/reviews\\?book=%2Fbooks%2F[\\w-;=]+$"}, + "@id": {"pattern": "^/reviews\\?book=%2Fbooks%2F[\\w\\-;=]+$"}, "@type": {"pattern": "^hydra:PartialCollectionView$"} } }, diff --git a/api/features/bootstrap/CoverageContext.php b/api/features/bootstrap/CoverageContext.php new file mode 100644 index 000000000..d2911f892 --- /dev/null +++ b/api/features/bootstrap/CoverageContext.php @@ -0,0 +1,59 @@ + + * @author Vincent Chalamon + * @copyright Adapted from https://gist.github.com/eliecharra/9c8b3ba57998b50e14a6 + */ +final class CoverageContext implements Context +{ + /** + * @var CodeCoverage + */ + private static $coverage; + + /** + * @BeforeSuite + */ + public static function setup() + { + $filter = new Filter(); + $filter->addDirectoryToWhitelist(__DIR__.'/../../src'); + self::$coverage = new CodeCoverage(null, $filter); + } + + /** + * @AfterSuite + */ + public static function tearDown() + { + (new Facade())->process(self::$coverage, __DIR__.'/../../coverage'); + (new Clover())->process(self::$coverage, __DIR__.'/../../coverage/'.(getenv('FEATURE') ?: 'behat').'.xml'); + } + + /** + * @BeforeScenario + */ + public function startCoverage(BeforeScenarioScope $scope) + { + self::$coverage->start("{$scope->getFeature()->getTitle()}::{$scope->getScenario()->getTitle()}"); + } + + /** + * @AfterScenario + */ + public function stopCoverage() + { + self::$coverage->stop(); + } +} diff --git a/api/features/demo.feature b/api/features/demo.feature deleted file mode 100644 index 295db96ef..000000000 --- a/api/features/demo.feature +++ /dev/null @@ -1,12 +0,0 @@ -# This file contains a user story for demonstration only. -# Learn how to get started with Behat and BDD on Behat's website: -# http://behat.org/en/latest/quick_start.html - -Feature: - In order to prove that the Behat Symfony extension is correctly installed - As a user - I want to have a demo scenario - - Scenario: It receives a response from Symfony's kernel - When a demo scenario sends a request to "/" - Then the response should be received diff --git a/api/symfony.lock b/api/symfony.lock index fe48e926d..6bd819aab 100644 --- a/api/symfony.lock +++ b/api/symfony.lock @@ -233,6 +233,18 @@ "phpdocumentor/type-resolver": { "version": "0.4.0" }, + "phpunit/php-code-coverage": { + "version": "7.0.3" + }, + "phpunit/php-file-iterator": { + "version": "2.0.2" + }, + "phpunit/php-text-template": { + "version": "1.2.1" + }, + "phpunit/php-token-stream": { + "version": "3.0.1" + }, "psr/cache": { "version": "1.0.1" }, @@ -266,18 +278,27 @@ "ref": "471aed0fbf5620b8d7f92b7a5ebbbf6c0945c27a" } }, + "sebastian/code-unit-reverse-lookup": { + "version": "1.0.1" + }, "sebastian/comparator": { "version": "3.0.2" }, "sebastian/diff": { "version": "3.0.2" }, + "sebastian/environment": { + "version": "4.2.2" + }, "sebastian/exporter": { "version": "3.1.0" }, "sebastian/recursion-context": { "version": "3.0.0" }, + "sebastian/version": { + "version": "2.0.1" + }, "sensiolabs/security-checker": { "version": "4.0", "recipe": { @@ -547,6 +568,9 @@ "ref": "fe5a50faf580eb58f08ada2abe8afbd2d4941e05" } }, + "theseer/tokenizer": { + "version": "1.1.2" + }, "twig/twig": { "version": "v2.7.2" }, diff --git a/ci/test b/ci/test index b525d6fd7..0efa29cfa 100755 --- a/ci/test +++ b/ci/test @@ -8,12 +8,13 @@ docker-compose build --pull docker-compose up -d sleep 20 docker-compose exec php composer install -o -n +docker-compose exec php bin/console security:check docker-compose exec php bin/console doctrine:schema:validate --skip-sync docker-compose exec php bin/console hautelook:fixtures:load -n docker-compose exec php bin/console doctrine:schema:drop --env=test --force docker-compose exec php bin/console doctrine:schema:create --env=test docker-compose exec php bin/console cache:warmup --env=test -docker-compose exec php vendor/bin/behat --format=progress --no-interaction +docker-compose exec php phpdbg -qrr vendor/bin/behat --format=progress --no-interaction docker-compose exec client yarn install --pure-lockfile docker-compose exec client yarn jest --ci --reporters=default --reporters=jest-junit --passWithNoTests docker-compose exec client yarn eslint src diff --git a/docker-compose.yml b/docker-compose.yml index ea08c6c96..0e1e04dd1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,7 @@ services: - ${CONTAINER_REGISTRY_BASE}/varnish depends_on: - db + - mercure # Comment out these volumes in production volumes: - ./api:/srv/api:rw,cached