From 26ab215663922c4152fca0741e494e6ece39d623 Mon Sep 17 00:00:00 2001 From: stoakes Date: Sat, 13 May 2017 11:11:37 +0200 Subject: [PATCH] Rework test infrastructure --- .travis.yml | 7 +- app/config/config_test.yml | 14 +- behat.yml | 7 +- bin/symfony_requirements | 0 composer.json | 179 ++- composer.lock | 1803 +++++++++++++++++------- features/bootstrap/FeatureContext.php | 100 +- features/personne/filiere_crud.feature | 14 +- features/personne/poste_crud.feature | 6 +- features/suivi/etude_crud.feature | 8 +- features/user/user.feature | 8 +- 11 files changed, 1519 insertions(+), 627 deletions(-) mode change 100644 => 100755 bin/symfony_requirements diff --git a/.travis.yml b/.travis.yml index 4aa3b1f90..dab3b2855 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,7 @@ services: script: - cp docker-compose.yml.dist docker-compose.yml - docker-compose build - - docker-compose run --rm web composer install -o -n - - docker-compose up -d - - docker-compose exec web sleep 60 && php bin/console doctrine:schema:create - - docker-compose exec web php bin/console doctrine:fixtures:load -n +# - docker-compose run --rm web composer install -o -n + - docker-compose run --rm web php bin/console cache:clear -e=test + - docker-compose run --rm web vendor/bin/behat ./features/ -f pretty - docker-compose stop diff --git a/app/config/config_test.yml b/app/config/config_test.yml index 3d88bc025..e8d307041 100644 --- a/app/config/config_test.yml +++ b/app/config/config_test.yml @@ -6,11 +6,17 @@ framework: session: storage_id: session.storage.mock_file profiler: - collect: false + collect: false + +web_profiler: + toolbar: false + intercept_redirects: false swiftmailer: disable_delivery: true -web_profiler: - toolbar: false - intercept_redirects: false +doctrine: + dbal: + driver: "pdo_sqlite" + path: "%kernel.cache_dir%/db.sqlite" + charset: "UTF8" diff --git a/behat.yml b/behat.yml index 9d0ebb7f3..adaf142a4 100644 --- a/behat.yml +++ b/behat.yml @@ -4,14 +4,17 @@ default: suites: default: contexts: - - FeatureContext + - FeatureContext: { doctrine: "@doctrine", kernel: "@kernel" } + - Behatch\Context\DebugContext: ~ + extensions: Behat\Symfony2Extension: kernel: env: "test" - debug: "true" + debug: "false" Behat\MinkExtension: base_url: "http://localhost/" sessions: default: symfony2: ~ + Behatch\Extension: ~ diff --git a/bin/symfony_requirements b/bin/symfony_requirements old mode 100644 new mode 100755 diff --git a/composer.json b/composer.json index 766a8ec1c..2670da2b6 100644 --- a/composer.json +++ b/composer.json @@ -1,95 +1,92 @@ { - "name": "n7consulting/jeyser-crm", - "description": "ERP / CRM for Junior-Entreprises", - "license": "AGPL-3.0", - "type": "project", - "autoload": { - "psr-4": { - "": "src/", - "Incipio\\": "app/", - "Tests\\": "tests/" - }, - "classmap": [ "app/AppKernel.php", "app/AppCache.php" ] + "name": "n7consulting/jeyser-crm", + "description": "ERP / CRM for Junior-Entreprises", + "license": "AGPL-3.0", + "type": "project", + "autoload": { + "psr-4": { + "": "src/", + "Incipio\\": "app/", + "Tests\\": "tests/" }, - "require": { - "php": ">=5.6", - "doctrine/doctrine-bundle": "~1.4", - "doctrine/doctrine-fixtures-bundle": "~2.3", - "doctrine/orm": "^2.5", - "egulias/email-validator": "~1.2", - "friendsofsymfony/comment-bundle": "~2.0", - "friendsofsymfony/jsrouting-bundle": "~1.1", - "friendsofsymfony/user-bundle": "^2.0", - "gedmo/doctrine-extensions": "~2.3", - "incenteev/composer-parameter-handler": "~2.0", - "ob/highcharts-bundle": "~1.2", - "sensio/distribution-bundle": "^5.0", - "sensio/framework-extra-bundle": "^3.0", - "sensio/generator-bundle": "^3.1", - "stof/doctrine-extensions-bundle": "~1.0", - "symfony/assetic-bundle": "~2.3", - "symfony/monolog-bundle": "~2.4", - "symfony/symfony": "^3.1", - "symfony/swiftmailer-bundle": "^2.3", - "twig/extensions": "~1.0", - "javiereguiluz/easyadmin-bundle": "^1.9", - "stoakes/form-bundle": "^3.0@dev", - "doctrine/doctrine-migrations-bundle": "^1.0", - "webmozart/key-value-store": "^1.0", - "webmozart/json": "^1.2" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^1.9", - "behat/behat": "^3.0", - "behat/symfony2-extension": "^2.0", - "behat/mink-extension": "^2.0", - "behat/mink-goutte-driver": "^1.1", - "behat/mink-selenium2-driver": "^1.2" - }, - "scripts": { - "style:check": "php bin/php-cs-fixer fix --no-interaction --dry-run --diff -vvvv src/", - "style:fix": "php bin/php-cs-fixer fix -vvvv src/", - "test": "composer test:db", - "test:behat": "vendor/bin/behat", - "test:db": "php bin/console doctrine:schema:validate --ansi", - "db": "composer db:drop && composer db:create && composer db:seed", - "db:create": "php bin/console doctrine:schema:create --ansi", - "db:drop": "php bin/console doctrine:schema:drop --force --ansi", - "db:reload": "composer db:update && composer db:seed", - "db:seed": "php bin/console doctrine:fixtures:load -n --ansi", - "db:update": "php bin/console doctrine:schema:update --force --ansi", - "db:test": "composer db:test:drop && composer db:test:create && composer db:test:seed", - "db:test:create": "php bin/console doctrine:schema:create --env=test --ansi", - "db:test:drop": "php bin/console doctrine:schema:drop --env=test --force --ansi", - "db:test:seed": "php bin/console doctrine:fixtures:load --env=test -n --ansi", - "install:first": [ - "php bin/console doctrine:schema:create -n --env=prod --ansi", - "php bin/console doctrine:fixtures:load -n --env=prod --ansi" - ], - "post-install-cmd": [ - "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" - ], - "post-update-cmd": [ - "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" - ] - }, - "extra": { - "symfony-app-dir": "app", - "symfony-bin-dir": "bin", - "symfony-var-dir": "var", - "symfony-web-dir": "web", - "symfony-tests-dir": "tests", - "symfony-assets-install": "relative", - "incenteev-parameters": { - "file": "app/config/parameters.yml" - } + "classmap": [ + "app/AppKernel.php", + "app/AppCache.php" + ] + }, + "require": { + "php": ">=5.6", + "doctrine/doctrine-bundle": "~1.4", + "doctrine/doctrine-fixtures-bundle": "~2.3", + "doctrine/orm": "^2.5", + "egulias/email-validator": "~1.2", + "friendsofsymfony/comment-bundle": "~2.0", + "friendsofsymfony/jsrouting-bundle": "~1.1", + "friendsofsymfony/user-bundle": "^2.0", + "gedmo/doctrine-extensions": "~2.3", + "incenteev/composer-parameter-handler": "~2.0", + "ob/highcharts-bundle": "~1.2", + "sensio/distribution-bundle": "^5.0", + "sensio/framework-extra-bundle": "^3.0", + "sensio/generator-bundle": "^3.1", + "stof/doctrine-extensions-bundle": "~1.0", + "symfony/assetic-bundle": "~2.3", + "symfony/monolog-bundle": "~2.4", + "symfony/symfony": "^3.1", + "symfony/swiftmailer-bundle": "^2.3", + "twig/extensions": "~1.0", + "javiereguiluz/easyadmin-bundle": "^1.9", + "stoakes/form-bundle": "^3.0@dev", + "doctrine/doctrine-migrations-bundle": "^1.0", + "webmozart/key-value-store": "^1.0", + "webmozart/json": "^1.2" + }, + "require-dev": { + "behat/behat": "^3.1", + "behat/mink": "^1.7", + "behat/mink-browserkit-driver": "^1.3.1", + "behat/mink-extension": "^2.2", + "behat/symfony2-extension": "^2.1", + "behatch/contexts": "^2.6", + "phpunit/phpunit": "^5.0", + "sensio/generator-bundle": "^3.0", + "symfony/phpunit-bridge": "^3.0", + "friendsofphp/php-cs-fixer": "^1.9" + }, + "scripts": { + "style:check": "./vendor/bin/php-cs-fixer fix --no-interaction --dry-run --diff -vvvv src/", + "style:fix": "./vendor/bin/php-cs-fixer fix -vvvv src/", + "test": "composer test:db", + "test:behat": "./vendor/bin/behat ./features/ -f pretty", + "test:db": "php bin/console doctrine:schema:validate --ansi", + "install:first": [ + "php bin/console doctrine:schema:create -n --env=prod --ansi", + "php bin/console doctrine:fixtures:load -n --env=prod --ansi" + ], + "post-install-cmd": [ + "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" + ], + "post-update-cmd": [ + "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" + ] + }, + "extra": { + "symfony-app-dir": "app", + "symfony-bin-dir": "bin", + "symfony-var-dir": "var", + "symfony-web-dir": "web", + "symfony-tests-dir": "tests", + "symfony-assets-install": "relative", + "incenteev-parameters": { + "file": "app/config/parameters.yml" } + } } diff --git a/composer.lock b/composer.lock index ec2836f0c..c34e71725 100644 --- a/composer.lock +++ b/composer.lock @@ -4,34 +4,29 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "6438a678b6ffbd840a4228474b66be95", - "content-hash": "813994ee209de2bcd1124d22df55e2f8", + "content-hash": "356e8813a83918e007cee9f0d5a09235", "packages": [ { "name": "behat/transliterator", - "version": "v1.2.0", + "version": "v1.1.0", "source": { "type": "git", "url": "https://github.com/Behat/Transliterator.git", - "reference": "826ce7e9c2a6664c0d1f381cbb38b1fb80a7ee2c" + "reference": "868e05be3a9f25ba6424c2dd4849567f50715003" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Behat/Transliterator/zipball/826ce7e9c2a6664c0d1f381cbb38b1fb80a7ee2c", - "reference": "826ce7e9c2a6664c0d1f381cbb38b1fb80a7ee2c", + "url": "https://api.github.com/repos/Behat/Transliterator/zipball/868e05be3a9f25ba6424c2dd4849567f50715003", + "reference": "868e05be3a9f25ba6424c2dd4849567f50715003", "shasum": "" }, "require": { "php": ">=5.3.3" }, - "require-dev": { - "chuyskywalker/rolling-curl": "^3.1", - "php-yaoi/php-yaoi": "^1.0" - }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2-dev" + "dev-master": "1.1-dev" } }, "autoload": { @@ -49,7 +44,7 @@ "slug", "transliterator" ], - "time": "2017-04-04 11:38:05" + "time": "2015-09-28T16:26:35+00:00" }, { "name": "composer/ca-bundle", @@ -108,7 +103,7 @@ "ssl", "tls" ], - "time": "2017-03-06 11:59:08" + "time": "2017-03-06T11:59:08+00:00" }, { "name": "doctrine/annotations", @@ -176,7 +171,7 @@ "docblock", "parser" ], - "time": "2017-02-24 16:22:25" + "time": "2017-02-24T16:22:25+00:00" }, { "name": "doctrine/cache", @@ -246,7 +241,7 @@ "cache", "caching" ], - "time": "2016-10-29 11:16:17" + "time": "2016-10-29T11:16:17+00:00" }, { "name": "doctrine/collections", @@ -313,7 +308,7 @@ "collections", "iterator" ], - "time": "2017-01-03 10:49:41" + "time": "2017-01-03T10:49:41+00:00" }, { "name": "doctrine/common", @@ -386,7 +381,7 @@ "persistence", "spl" ], - "time": "2017-01-13 14:02:13" + "time": "2017-01-13T14:02:13+00:00" }, { "name": "doctrine/data-fixtures", @@ -445,7 +440,7 @@ "keywords": [ "database" ], - "time": "2016-09-20 10:07:57" + "time": "2016-09-20T10:07:57+00:00" }, { "name": "doctrine/dbal", @@ -516,7 +511,7 @@ "persistence", "queryobject" ], - "time": "2017-02-08 12:53:47" + "time": "2017-02-08T12:53:47+00:00" }, { "name": "doctrine/doctrine-bundle", @@ -597,7 +592,7 @@ "orm", "persistence" ], - "time": "2017-01-16 12:01:26" + "time": "2017-01-16T12:01:26+00:00" }, { "name": "doctrine/doctrine-cache-bundle", @@ -685,7 +680,7 @@ "cache", "caching" ], - "time": "2016-01-26 17:28:51" + "time": "2016-01-26T17:28:51+00:00" }, { "name": "doctrine/doctrine-fixtures-bundle", @@ -742,7 +737,7 @@ "Fixture", "persistence" ], - "time": "2015-11-04 21:23:23" + "time": "2015-11-04T21:23:23+00:00" }, { "name": "doctrine/doctrine-migrations-bundle", @@ -803,7 +798,7 @@ "migrations", "schema" ], - "time": "2016-12-05 18:36:37" + "time": "2016-12-05T18:36:37+00:00" }, { "name": "doctrine/inflector", @@ -870,7 +865,7 @@ "singularize", "string" ], - "time": "2015-11-06 14:35:42" + "time": "2015-11-06T14:35:42+00:00" }, { "name": "doctrine/instantiator", @@ -924,7 +919,7 @@ "constructor", "instantiate" ], - "time": "2015-06-14 21:17:01" + "time": "2015-06-14T21:17:01+00:00" }, { "name": "doctrine/lexer", @@ -978,7 +973,7 @@ "lexer", "parser" ], - "time": "2014-09-09 13:34:57" + "time": "2014-09-09T13:34:57+00:00" }, { "name": "doctrine/migrations", @@ -1052,7 +1047,7 @@ "database", "migrations" ], - "time": "2016-12-25 22:54:00" + "time": "2016-12-25T22:54:00+00:00" }, { "name": "doctrine/orm", @@ -1128,7 +1123,7 @@ "database", "orm" ], - "time": "2016-12-18 15:42:34" + "time": "2016-12-18T15:42:34+00:00" }, { "name": "egulias/email-validator", @@ -1180,7 +1175,7 @@ "validation", "validator" ], - "time": "2017-02-03 22:48:59" + "time": "2017-02-03T22:48:59+00:00" }, { "name": "friendsofsymfony/comment-bundle", @@ -1264,7 +1259,7 @@ "forum", "threads" ], - "time": "2016-10-07 11:20:50" + "time": "2016-10-07T11:20:50+00:00" }, { "name": "friendsofsymfony/jsrouting-bundle", @@ -1311,7 +1306,7 @@ "homepage": "https://github.com/friendsofsymfony/FOSJsRoutingBundle/contributors" }, { - "name": "William DURAND", + "name": "William Durand", "email": "william.durand1@gmail.com" } ], @@ -1322,20 +1317,20 @@ "javascript", "routing" ], - "time": "2015-10-28 15:08:39" + "time": "2015-10-28T15:08:39+00:00" }, { "name": "friendsofsymfony/rest-bundle", - "version": "2.1.1", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/FriendsOfSymfony/FOSRestBundle.git", - "reference": "5a399bb434045c2b579cfe55472fff100373f4ec" + "reference": "d62a6c0f4bc699f899865d7e7bc7a4186aef9a86" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/zipball/5a399bb434045c2b579cfe55472fff100373f4ec", - "reference": "5a399bb434045c2b579cfe55472fff100373f4ec", + "url": "https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/zipball/d62a6c0f4bc699f899865d7e7bc7a4186aef9a86", + "reference": "d62a6c0f4bc699f899865d7e7bc7a4186aef9a86", "shasum": "" }, "require": { @@ -1365,12 +1360,13 @@ "phpoption/phpoption": "^1.1", "psr/http-message": "^1.0", "sensio/framework-extra-bundle": "^3.0.13", + "symfony/asset": "^2.7|^3.0", "symfony/browser-kit": "^2.7|^3.0", "symfony/css-selector": "^2.7|^3.0", "symfony/dependency-injection": "^2.7|^3.0", "symfony/expression-language": "~2.7|^3.0", "symfony/form": "^2.7|^3.0", - "symfony/phpunit-bridge": "~2.7|^3.0", + "symfony/phpunit-bridge": "^3.2", "symfony/security-bundle": "^2.7|^3.0", "symfony/serializer": "^2.7.11|^3.0.4", "symfony/twig-bundle": "^2.7|^3.0", @@ -1388,13 +1384,16 @@ "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "2.2-dev" } }, "autoload": { "psr-4": { "FOS\\RestBundle\\": "" - } + }, + "exclude-from-classmap": [ + "Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1419,7 +1418,7 @@ "keywords": [ "rest" ], - "time": "2016-11-23 12:09:05" + "time": "2017-04-06T12:55:03+00:00" }, { "name": "friendsofsymfony/user-bundle", @@ -1496,24 +1495,24 @@ "keywords": [ "User management" ], - "time": "2017-03-29 13:21:34" + "time": "2017-03-29T13:21:34+00:00" }, { "name": "gedmo/doctrine-extensions", - "version": "v2.4.27", + "version": "v2.4.28", "source": { "type": "git", "url": "https://github.com/Atlantic18/DoctrineExtensions.git", - "reference": "fe152e1239f2f46287d369e43cc9fa817cc3cd36" + "reference": "58038d5d217b6ba2c75de90cb2f6d424d86fab56" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Atlantic18/DoctrineExtensions/zipball/fe152e1239f2f46287d369e43cc9fa817cc3cd36", - "reference": "fe152e1239f2f46287d369e43cc9fa817cc3cd36", + "url": "https://api.github.com/repos/Atlantic18/DoctrineExtensions/zipball/58038d5d217b6ba2c75de90cb2f6d424d86fab56", + "reference": "58038d5d217b6ba2c75de90cb2f6d424d86fab56", "shasum": "" }, "require": { - "behat/transliterator": "~1.0", + "behat/transliterator": "1.1", "doctrine/common": "~2.4", "php": ">=5.3.2" }, @@ -1574,7 +1573,7 @@ "tree", "uploadable" ], - "time": "2017-03-22 09:48:22" + "time": "2017-04-23T08:59:41+00:00" }, { "name": "incenteev/composer-parameter-handler", @@ -1625,7 +1624,7 @@ "keywords": [ "parameters management" ], - "time": "2015-11-10 17:04:01" + "time": "2015-11-10T17:04:01+00:00" }, { "name": "javiereguiluz/easyadmin-bundle", @@ -1711,7 +1710,7 @@ "backend", "generator" ], - "time": "2017-04-08 18:35:00" + "time": "2017-04-08T18:35:00+00:00" }, { "name": "jdorn/sql-formatter", @@ -1761,7 +1760,7 @@ "highlight", "sql" ], - "time": "2014-01-12 16:20:24" + "time": "2014-01-12T16:20:24+00:00" }, { "name": "jms/metadata", @@ -1812,7 +1811,7 @@ "xml", "yaml" ], - "time": "2016-12-05 10:18:33" + "time": "2016-12-05T10:18:33+00:00" }, { "name": "jms/parser-lib", @@ -1847,20 +1846,20 @@ "Apache2" ], "description": "A library for easily creating recursive-descent parsers.", - "time": "2012-11-18 18:08:43" + "time": "2012-11-18T18:08:43+00:00" }, { "name": "jms/serializer", - "version": "1.6.2", + "version": "1.7.0", "source": { "type": "git", "url": "https://github.com/schmittjoh/serializer.git", - "reference": "b8683d206e7297f54034f67a877f966c14dc12ea" + "reference": "b5abc84a55d7c7203561b3fd9049acd6859a5b62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/b8683d206e7297f54034f67a877f966c14dc12ea", - "reference": "b8683d206e7297f54034f67a877f966c14dc12ea", + "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/b5abc84a55d7c7203561b3fd9049acd6859a5b62", + "reference": "b5abc84a55d7c7203561b3fd9049acd6859a5b62", "shasum": "" }, "require": { @@ -1899,7 +1898,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6-dev" + "dev-master": "1.7-dev" } }, "autoload": { @@ -1926,25 +1925,25 @@ "serialization", "xml" ], - "time": "2017-04-17 15:27:46" + "time": "2017-05-10T09:43:46+00:00" }, { "name": "jms/serializer-bundle", - "version": "1.4.0", + "version": "1.5.0", "target-dir": "JMS/SerializerBundle", "source": { "type": "git", "url": "https://github.com/schmittjoh/JMSSerializerBundle.git", - "reference": "fdd73dbc8642940084deda2a96fa5db62d0f2384" + "reference": "85ee039a2b7f89d77c403e33cee7b43a875c31e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/JMSSerializerBundle/zipball/fdd73dbc8642940084deda2a96fa5db62d0f2384", - "reference": "fdd73dbc8642940084deda2a96fa5db62d0f2384", + "url": "https://api.github.com/repos/schmittjoh/JMSSerializerBundle/zipball/85ee039a2b7f89d77c403e33cee7b43a875c31e5", + "reference": "85ee039a2b7f89d77c403e33cee7b43a875c31e5", "shasum": "" }, "require": { - "jms/serializer": "^1.6", + "jms/serializer": "^1.7", "php": ">=5.4.0", "phpoption/phpoption": "^1.1.0", "symfony/framework-bundle": "~2.3|~3.0" @@ -1971,7 +1970,7 @@ "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.5-dev" } }, "autoload": { @@ -1981,7 +1980,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "Apache2" + "Apache-2.0" ], "authors": [ { @@ -1998,7 +1997,7 @@ "serialization", "xml" ], - "time": "2017-04-10 12:31:39" + "time": "2017-05-10T10:17:17+00:00" }, { "name": "justinrainbow/json-schema", @@ -2064,7 +2063,7 @@ "json", "schema" ], - "time": "2016-01-25 15:43:01" + "time": "2016-01-25T15:43:01+00:00" }, { "name": "kriswallsmith/assetic", @@ -2141,7 +2140,7 @@ "compression", "minification" ], - "time": "2016-11-11 18:43:20" + "time": "2016-11-11T18:43:20+00:00" }, { "name": "monolog/monolog", @@ -2219,7 +2218,7 @@ "logging", "psr-3" ], - "time": "2017-03-13 07:08:03" + "time": "2017-03-13T07:08:03+00:00" }, { "name": "ob/highcharts-bundle", @@ -2273,42 +2272,92 @@ "marcaube", "ob" ], - "time": "2016-07-26 23:46:28" + "time": "2016-07-26T23:46:28+00:00" + }, + { + "name": "ocramius/package-versions", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/Ocramius/PackageVersions.git", + "reference": "51e867c70f0799790b3e82276875414ce13daaca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/51e867c70f0799790b3e82276875414ce13daaca", + "reference": "51e867c70f0799790b3e82276875414ce13daaca", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0", + "php": "~7.0" + }, + "require-dev": { + "composer/composer": "^1.3", + "ext-zip": "*", + "phpunit/phpunit": "^5.4.7" + }, + "type": "composer-plugin", + "extra": { + "class": "PackageVersions\\Installer", + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "PackageVersions\\": "src/PackageVersions" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + } + ], + "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", + "time": "2016-12-30T09:49:15+00:00" }, { "name": "ocramius/proxy-manager", - "version": "1.0.2", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/Ocramius/ProxyManager.git", - "reference": "57e9272ec0e8deccf09421596e0e2252df440e11" + "reference": "a55d08229f4f614bf335759ed0cf63378feeb2e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/57e9272ec0e8deccf09421596e0e2252df440e11", - "reference": "57e9272ec0e8deccf09421596e0e2252df440e11", + "url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/a55d08229f4f614bf335759ed0cf63378feeb2e6", + "reference": "a55d08229f4f614bf335759ed0cf63378feeb2e6", "shasum": "" }, "require": { - "php": ">=5.3.3", - "zendframework/zend-code": ">2.2.5,<3.0" + "ocramius/package-versions": "^1.0", + "php": "7.0.0 - 7.0.5 || ^7.0.7", + "zendframework/zend-code": "3.0.0 - 3.0.2 || ^3.0.4" }, "require-dev": { + "couscous/couscous": "^1.4.0", "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "1.5.*" + "phpbench/phpbench": "^0.11.2", + "phpunit/phpunit": "^5.4.6", + "squizlabs/php_codesniffer": "^2.6.0" }, "suggest": { "ocramius/generated-hydrator": "To have very fast object to array to object conversion for ghost objects", "zendframework/zend-json": "To have the JsonRpc adapter (Remote Object feature)", "zendframework/zend-soap": "To have the Soap adapter (Remote Object feature)", - "zendframework/zend-stdlib": "To use the hydrator proxy", "zendframework/zend-xmlrpc": "To have the XmlRpc adapter (Remote Object feature)" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0.x-dev" } }, "autoload": { @@ -2324,7 +2373,7 @@ { "name": "Marco Pivetta", "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" + "homepage": "http://ocramius.github.io/" } ], "description": "A library providing utilities to generate, instantiate and generally operate with Object Proxies", @@ -2336,7 +2385,7 @@ "proxy pattern", "service proxies" ], - "time": "2015-08-09 04:28:19" + "time": "2016-11-04T15:53:15+00:00" }, { "name": "pagerfanta/pagerfanta", @@ -2405,7 +2454,7 @@ "paginator", "paging" ], - "time": "2017-03-20 13:46:15" + "time": "2017-03-20T13:46:15+00:00" }, { "name": "paragonie/random_compat", @@ -2453,7 +2502,7 @@ "pseudorandom", "random" ], - "time": "2017-03-13 16:27:32" + "time": "2017-03-13T16:27:32+00:00" }, { "name": "phpcollection/phpcollection", @@ -2501,7 +2550,7 @@ "sequence", "set" ], - "time": "2015-05-17 12:39:23" + "time": "2015-05-17T12:39:23+00:00" }, { "name": "phpoption/phpoption", @@ -2551,7 +2600,7 @@ "php", "type" ], - "time": "2015-07-25 16:39:46" + "time": "2015-07-25T16:39:46+00:00" }, { "name": "psr/cache", @@ -2597,7 +2646,7 @@ "psr", "psr-6" ], - "time": "2016-08-06 20:24:11" + "time": "2016-08-06T20:24:11+00:00" }, { "name": "psr/log", @@ -2644,7 +2693,7 @@ "psr", "psr-3" ], - "time": "2016-10-10 12:19:37" + "time": "2016-10-10T12:19:37+00:00" }, { "name": "seld/jsonlint", @@ -2693,20 +2742,20 @@ "parser", "validator" ], - "time": "2017-03-06 16:42:24" + "time": "2017-03-06T16:42:24+00:00" }, { "name": "sensio/distribution-bundle", - "version": "v5.0.18", + "version": "v5.0.20", "source": { "type": "git", "url": "https://github.com/sensiolabs/SensioDistributionBundle.git", - "reference": "17846680901003d26d823c2e3ac9228702837916" + "reference": "4b019d4c0bd64438c42e4b6b0726085b409be8d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/17846680901003d26d823c2e3ac9228702837916", - "reference": "17846680901003d26d823c2e3ac9228702837916", + "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/4b019d4c0bd64438c42e4b6b0726085b409be8d9", + "reference": "4b019d4c0bd64438c42e4b6b0726085b409be8d9", "shasum": "" }, "require": { @@ -2745,20 +2794,20 @@ "configuration", "distribution" ], - "time": "2017-01-10 14:58:45" + "time": "2017-05-11T16:21:03+00:00" }, { "name": "sensio/framework-extra-bundle", - "version": "v3.0.25", + "version": "v3.0.26", "source": { "type": "git", "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git", - "reference": "472b339cf0c82f3a033b29f85d9d9cada3cd1a9c" + "reference": "6d6cbe971554f0a2cc84965850481eb04a2a0059" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/472b339cf0c82f3a033b29f85d9d9cada3cd1a9c", - "reference": "472b339cf0c82f3a033b29f85d9d9cada3cd1a9c", + "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/6d6cbe971554f0a2cc84965850481eb04a2a0059", + "reference": "6d6cbe971554f0a2cc84965850481eb04a2a0059", "shasum": "" }, "require": { @@ -2815,7 +2864,7 @@ "annotations", "controllers" ], - "time": "2017-03-21 23:34:44" + "time": "2017-05-11T17:01:57+00:00" }, { "name": "sensio/generator-bundle", @@ -2869,7 +2918,7 @@ } ], "description": "This bundle generates code for you", - "time": "2017-03-15 01:02:10" + "time": "2017-03-15T01:02:10+00:00" }, { "name": "sensiolabs/security-checker", @@ -2914,7 +2963,7 @@ } ], "description": "A security checker for your composer.lock", - "time": "2017-03-31 14:50:32" + "time": "2017-03-31T14:50:32+00:00" }, { "name": "stoakes/form-bundle", @@ -2977,7 +3026,7 @@ "extra form", "form" ], - "time": "2017-01-07 09:46:04" + "time": "2017-01-07T09:46:04+00:00" }, { "name": "stof/doctrine-extensions-bundle", @@ -3038,20 +3087,20 @@ "translatable", "tree" ], - "time": "2016-01-26 23:58:32" + "time": "2016-01-26T23:58:32+00:00" }, { "name": "swiftmailer/swiftmailer", - "version": "v5.4.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/swiftmailer/swiftmailer.git", - "reference": "56db4ed32a6d5c9824c3ecc1d2e538f663f47eb4" + "reference": "9a06dc570a0367850280eefd3f1dc2da45aef517" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/56db4ed32a6d5c9824c3ecc1d2e538f663f47eb4", - "reference": "56db4ed32a6d5c9824c3ecc1d2e538f663f47eb4", + "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/9a06dc570a0367850280eefd3f1dc2da45aef517", + "reference": "9a06dc570a0367850280eefd3f1dc2da45aef517", "shasum": "" }, "require": { @@ -3092,7 +3141,7 @@ "mail", "mailer" ], - "time": "2017-04-20 17:32:18" + "time": "2017-05-01T15:54:03+00:00" }, { "name": "symfony/assetic-bundle", @@ -3162,7 +3211,7 @@ "compression", "minification" ], - "time": "2016-11-22 11:42:57" + "time": "2016-11-22T11:42:57+00:00" }, { "name": "symfony/monolog-bundle", @@ -3222,7 +3271,7 @@ "log", "logging" ], - "time": "2017-01-02 19:04:26" + "time": "2017-01-02T19:04:26+00:00" }, { "name": "symfony/polyfill-intl-icu", @@ -3280,7 +3329,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -3339,7 +3388,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-php56", @@ -3395,7 +3444,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-php70", @@ -3454,7 +3503,7 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/polyfill-util", @@ -3506,7 +3555,7 @@ "polyfill", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/swiftmailer-bundle", @@ -3565,20 +3614,20 @@ ], "description": "Symfony SwiftmailerBundle", "homepage": "http://symfony.com", - "time": "2017-03-21 21:47:36" + "time": "2017-03-21T21:47:36+00:00" }, { "name": "symfony/symfony", - "version": "v3.2.7", + "version": "v3.2.8", "source": { "type": "git", "url": "https://github.com/symfony/symfony.git", - "reference": "1631040ea8fc5e0e405c00d35cbf2c0b7b555f64" + "reference": "85959c2abbe4d2f050f950f39c9c3cf83819f3df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/symfony/zipball/1631040ea8fc5e0e405c00d35cbf2c0b7b555f64", - "reference": "1631040ea8fc5e0e405c00d35cbf2c0b7b555f64", + "url": "https://api.github.com/repos/symfony/symfony/zipball/85959c2abbe4d2f050f950f39c9c3cf83819f3df", + "reference": "85959c2abbe4d2f050f950f39c9c3cf83819f3df", "shasum": "" }, "require": { @@ -3709,7 +3758,7 @@ "keywords": [ "framework" ], - "time": "2017-04-05 12:52:29" + "time": "2017-05-01T17:47:03+00:00" }, { "name": "twig/extensions", @@ -3761,7 +3810,7 @@ "i18n", "text" ], - "time": "2016-10-25 17:34:14" + "time": "2016-10-25T17:34:14+00:00" }, { "name": "twig/twig", @@ -3823,7 +3872,7 @@ "keywords": [ "templating" ], - "time": "2017-04-20 17:39:48" + "time": "2017-04-20T17:39:48+00:00" }, { "name": "webmozart/assert", @@ -3873,7 +3922,7 @@ "check", "validate" ], - "time": "2016-11-23 20:04:58" + "time": "2016-11-23T20:04:58+00:00" }, { "name": "webmozart/json", @@ -3922,7 +3971,7 @@ } ], "description": "A robust JSON decoder/encoder with support for schema validation.", - "time": "2016-01-14 12:11:46" + "time": "2016-01-14T12:11:46+00:00" }, { "name": "webmozart/key-value-store", @@ -3983,7 +4032,7 @@ } ], "description": "A key-value store API with implementations for different backends.", - "time": "2016-08-09 15:13:26" + "time": "2016-08-09T15:13:26+00:00" }, { "name": "webmozart/path-util", @@ -4029,7 +4078,7 @@ } ], "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.", - "time": "2015-12-17 08:42:14" + "time": "2015-12-17T08:42:14+00:00" }, { "name": "willdurand/jsonp-callback-validator", @@ -4069,20 +4118,20 @@ } ], "description": "JSONP callback validator.", - "time": "2014-01-20 22:35:06" + "time": "2014-01-20T22:35:06+00:00" }, { "name": "willdurand/negotiation", - "version": "v2.2.1", + "version": "v2.3.0", "source": { "type": "git", "url": "https://github.com/willdurand/Negotiation.git", - "reference": "1f210db45723b21edd69f39794662b8d64656b93" + "reference": "2ba90aa46b5e77f87b55f149cfd544b8434941d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/willdurand/Negotiation/zipball/1f210db45723b21edd69f39794662b8d64656b93", - "reference": "1f210db45723b21edd69f39794662b8d64656b93", + "url": "https://api.github.com/repos/willdurand/Negotiation/zipball/2ba90aa46b5e77f87b55f149cfd544b8434941d9", + "reference": "2ba90aa46b5e77f87b55f149cfd544b8434941d9", "shasum": "" }, "require": { @@ -4094,7 +4143,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2-dev" + "dev-master": "2.3-dev" } }, "autoload": { @@ -4121,30 +4170,31 @@ "header", "negotiation" ], - "time": "2016-10-14 09:17:47" + "time": "2017-05-04T12:15:48+00:00" }, { "name": "zendframework/zend-code", - "version": "2.6.3", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/zendframework/zend-code.git", - "reference": "95033f061b083e16cdee60530ec260d7d628b887" + "reference": "2899c17f83a7207f2d7f53ec2f421204d3beea27" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zendframework/zend-code/zipball/95033f061b083e16cdee60530ec260d7d628b887", - "reference": "95033f061b083e16cdee60530ec260d7d628b887", + "url": "https://api.github.com/repos/zendframework/zend-code/zipball/2899c17f83a7207f2d7f53ec2f421204d3beea27", + "reference": "2899c17f83a7207f2d7f53ec2f421204d3beea27", "shasum": "" }, "require": { - "php": "^5.5 || 7.0.0 - 7.0.4 || ^7.0.6", + "php": "^5.6 || 7.0.0 - 7.0.4 || ^7.0.6", "zendframework/zend-eventmanager": "^2.6 || ^3.0" }, "require-dev": { "doctrine/annotations": "~1.0", - "fabpot/php-cs-fixer": "1.7.*", + "ext-phar": "*", "phpunit/phpunit": "^4.8.21", + "squizlabs/php_codesniffer": "^2.5", "zendframework/zend-stdlib": "^2.7 || ^3.0" }, "suggest": { @@ -4154,8 +4204,8 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.6-dev", - "dev-develop": "2.7-dev" + "dev-master": "3.1-dev", + "dev-develop": "3.2-dev" } }, "autoload": { @@ -4173,7 +4223,7 @@ "code", "zf2" ], - "time": "2016-04-20 17:26:42" + "time": "2016-10-24T13:23:32+00:00" }, { "name": "zendframework/zend-eventmanager", @@ -4227,7 +4277,7 @@ "events", "zf2" ], - "time": "2016-12-19 21:47:12" + "time": "2016-12-19T21:47:12+00:00" }, { "name": "zendframework/zend-json", @@ -4277,7 +4327,7 @@ "json", "zf2" ], - "time": "2016-04-01 02:34:00" + "time": "2016-04-01T02:34:00+00:00" } ], "packages-dev": [ @@ -4361,7 +4411,7 @@ "symfony", "testing" ], - "time": "2016-12-25 13:43:52" + "time": "2016-12-25T13:43:52+00:00" }, { "name": "behat/gherkin", @@ -4420,7 +4470,7 @@ "gherkin", "parser" ], - "time": "2016-10-30 11:50:56" + "time": "2016-10-30T11:50:56+00:00" }, { "name": "behat/mink", @@ -4478,7 +4528,7 @@ "testing", "web" ], - "time": "2016-03-05 08:26:18" + "time": "2016-03-05T08:26:18+00:00" }, { "name": "behat/mink-browserkit-driver", @@ -4534,7 +4584,7 @@ "browser", "testing" ], - "time": "2016-03-05 08:59:47" + "time": "2016-03-05T08:59:47+00:00" }, { "name": "behat/mink-extension", @@ -4593,123 +4643,7 @@ "test", "web" ], - "time": "2016-02-15 07:55:18" - }, - { - "name": "behat/mink-goutte-driver", - "version": "v1.2.1", - "source": { - "type": "git", - "url": "https://github.com/minkphp/MinkGoutteDriver.git", - "reference": "8b9ad6d2d95bc70b840d15323365f52fcdaea6ca" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/minkphp/MinkGoutteDriver/zipball/8b9ad6d2d95bc70b840d15323365f52fcdaea6ca", - "reference": "8b9ad6d2d95bc70b840d15323365f52fcdaea6ca", - "shasum": "" - }, - "require": { - "behat/mink": "~1.6@dev", - "behat/mink-browserkit-driver": "~1.2@dev", - "fabpot/goutte": "~1.0.4|~2.0|~3.1", - "php": ">=5.3.1" - }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7|~3.0" - }, - "type": "mink-driver", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "psr-4": { - "Behat\\Mink\\Driver\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - } - ], - "description": "Goutte driver for Mink framework", - "homepage": "http://mink.behat.org/", - "keywords": [ - "browser", - "goutte", - "headless", - "testing" - ], - "time": "2016-03-05 09:04:22" - }, - { - "name": "behat/mink-selenium2-driver", - "version": "v1.3.1", - "source": { - "type": "git", - "url": "https://github.com/minkphp/MinkSelenium2Driver.git", - "reference": "473a9f3ebe0c134ee1e623ce8a9c852832020288" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/minkphp/MinkSelenium2Driver/zipball/473a9f3ebe0c134ee1e623ce8a9c852832020288", - "reference": "473a9f3ebe0c134ee1e623ce8a9c852832020288", - "shasum": "" - }, - "require": { - "behat/mink": "~1.7@dev", - "instaclick/php-webdriver": "~1.1", - "php": ">=5.3.1" - }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7" - }, - "type": "mink-driver", - "extra": { - "branch-alias": { - "dev-master": "1.3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Behat\\Mink\\Driver\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Pete Otaqui", - "email": "pete@otaqui.com", - "homepage": "https://github.com/pete-otaqui" - } - ], - "description": "Selenium2 (WebDriver) driver for Mink framework", - "homepage": "http://mink.behat.org/", - "keywords": [ - "ajax", - "browser", - "javascript", - "selenium", - "testing", - "webdriver" - ], - "time": "2016-03-05 09:10:18" + "time": "2016-02-15T07:55:18+00:00" }, { "name": "behat/symfony2-extension", @@ -4769,87 +4703,88 @@ "framework", "symfony" ], - "time": "2016-01-13 17:06:48" + "time": "2016-01-13T17:06:48+00:00" }, { - "name": "container-interop/container-interop", - "version": "1.2.0", + "name": "behatch/contexts", + "version": "v2.7", "source": { "type": "git", - "url": "https://github.com/container-interop/container-interop.git", - "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8" + "url": "https://github.com/Behatch/contexts.git", + "reference": "bc653ab6f7e9f9c35cdebaf42f76c90d1ebe968c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8", - "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8", + "url": "https://api.github.com/repos/Behatch/contexts/zipball/bc653ab6f7e9f9c35cdebaf42f76c90d1ebe968c", + "reference": "bc653ab6f7e9f9c35cdebaf42f76c90d1ebe968c", "shasum": "" }, "require": { - "psr/container": "^1.0" + "behat/behat": "~3.0", + "behat/mink-extension": "~2.0", + "justinrainbow/json-schema": "~1.4", + "php": ">=5.4", + "symfony/http-foundation": "~2.3|~3.0", + "symfony/property-access": "~2.3|~3.0" + }, + "replace": { + "sanpi/behatch-contexts": "self.version" + }, + "require-dev": { + "atoum/atoum": "~2.8|~3.0", + "behat/mink-goutte-driver": "~1.1", + "behat/mink-selenium2-driver": "~1.2" }, "type": "library", "autoload": { "psr-4": { - "Interop\\Container\\": "src/Interop/Container/" + "Behatch\\": "src/", + "Sanpi\\Behatch\\": "src/class_aliases/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "beerware" ], - "description": "Promoting the interoperability of container objects (DIC, SL, etc.)", - "homepage": "https://github.com/container-interop/container-interop", - "time": "2017-02-14 19:40:03" + "description": "Behatch contexts", + "keywords": [ + "BDD", + "Behat", + "Context", + "Symfony2" + ], + "time": "2017-04-14T08:47:09+00:00" }, { - "name": "fabpot/goutte", - "version": "v3.2.1", + "name": "container-interop/container-interop", + "version": "1.2.0", "source": { "type": "git", - "url": "https://github.com/FriendsOfPHP/Goutte.git", - "reference": "db5c28f4a010b4161d507d5304e28a7ebf211638" + "url": "https://github.com/container-interop/container-interop.git", + "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/Goutte/zipball/db5c28f4a010b4161d507d5304e28a7ebf211638", - "reference": "db5c28f4a010b4161d507d5304e28a7ebf211638", + "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8", + "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8", "shasum": "" }, "require": { - "guzzlehttp/guzzle": "^6.0", - "php": ">=5.5.0", - "symfony/browser-kit": "~2.1|~3.0", - "symfony/css-selector": "~2.1|~3.0", - "symfony/dom-crawler": "~2.1|~3.0" - }, - "type": "application", - "extra": { - "branch-alias": { - "dev-master": "3.2-dev" - } + "psr/container": "^1.0" }, + "type": "library", "autoload": { "psr-4": { - "Goutte\\": "Goutte" + "Interop\\Container\\": "src/Interop/Container/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "A simple PHP Web Scraper", - "homepage": "https://github.com/FriendsOfPHP/Goutte", - "keywords": [ - "scraper" - ], - "time": "2017-01-03 13:21:43" + "description": "Promoting the interoperability of container objects (DIC, SL, etc.)", + "homepage": "https://github.com/container-interop/container-interop", + "time": "2017-02-14T19:40:03+00:00" }, { "name": "friendsofphp/php-cs-fixer", @@ -4907,103 +4842,82 @@ } ], "description": "A tool to automatically fix PHP code style", - "time": "2016-12-01 00:05:05" + "time": "2016-12-01T00:05:05+00:00" }, { - "name": "guzzlehttp/guzzle", - "version": "6.2.3", + "name": "myclabs/deep-copy", + "version": "1.6.1", "source": { "type": "git", - "url": "https://github.com/guzzle/guzzle.git", - "reference": "8d6c6cc55186db87b7dc5009827429ba4e9dc006" + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/8d6c6cc55186db87b7dc5009827429ba4e9dc006", - "reference": "8d6c6cc55186db87b7dc5009827429ba4e9dc006", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8e6e04167378abf1ddb4d3522d8755c5fd90d102", + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102", "shasum": "" }, "require": { - "guzzlehttp/promises": "^1.0", - "guzzlehttp/psr7": "^1.4", - "php": ">=5.5" + "php": ">=5.4.0" }, "require-dev": { - "ext-curl": "*", - "phpunit/phpunit": "^4.0", - "psr/log": "^1.0" + "doctrine/collections": "1.*", + "phpunit/phpunit": "~4.1" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "6.2-dev" - } - }, "autoload": { - "files": [ - "src/functions_include.php" - ], "psr-4": { - "GuzzleHttp\\": "src/" + "DeepCopy\\": "src/DeepCopy/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Guzzle is a PHP HTTP client library", - "homepage": "http://guzzlephp.org/", + "description": "Create deep copies (clones) of your objects", + "homepage": "https://github.com/myclabs/DeepCopy", "keywords": [ - "client", - "curl", - "framework", - "http", - "http client", - "rest", - "web service" + "clone", + "copy", + "duplicate", + "object", + "object graph" ], - "time": "2017-02-28 22:50:30" + "time": "2017-04-12T18:52:22+00:00" }, { - "name": "guzzlehttp/promises", - "version": "v1.3.1", + "name": "phpdocumentor/reflection-common", + "version": "1.0", "source": { "type": "git", - "url": "https://github.com/guzzle/promises.git", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c", "shasum": "" }, "require": { - "php": ">=5.5.0" + "php": ">=5.5" }, "require-dev": { - "phpunit/phpunit": "^4.0" + "phpunit/phpunit": "^4.6" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { "psr-4": { - "GuzzleHttp\\Promise\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] + "phpDocumentor\\Reflection\\": [ + "src" + ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -5011,54 +4925,52 @@ ], "authors": [ { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" } ], - "description": "Guzzle promises library", + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", "keywords": [ - "promise" + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" ], - "time": "2016-12-20 10:07:11" + "time": "2015-12-27T11:43:31+00:00" }, { - "name": "guzzlehttp/psr7", - "version": "1.4.2", + "name": "phpdocumentor/reflection-docblock", + "version": "3.1.1", "source": { "type": "git", - "url": "https://github.com/guzzle/psr7.git", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8331b5efe816ae05461b7ca1e721c01b46bafb3e", + "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e", "shasum": "" }, "require": { - "php": ">=5.4.0", - "psr/http-message": "~1.0" - }, - "provide": { - "psr/http-message-implementation": "1.0" + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/type-resolver": "^0.2.0", + "webmozart/assert": "^1.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.4" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, "autoload": { "psr-4": { - "GuzzleHttp\\Psr7\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -5066,111 +4978,94 @@ ], "authors": [ { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Tobias Schultze", - "homepage": "https://github.com/Tobion" + "name": "Mike van Riel", + "email": "me@mikevanriel.com" } ], - "description": "PSR-7 message implementation that also provides common utility methods", - "keywords": [ - "http", - "message", - "request", - "response", - "stream", - "uri", - "url" - ], - "time": "2017-03-20 17:10:46" + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2016-09-30T07:12:33+00:00" }, { - "name": "instaclick/php-webdriver", - "version": "1.4.3", + "name": "phpdocumentor/type-resolver", + "version": "0.2.1", "source": { "type": "git", - "url": "https://github.com/instaclick/php-webdriver.git", - "reference": "0c20707dcf30a32728fd6bdeeab996c887fdb2fb" + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/instaclick/php-webdriver/zipball/0c20707dcf30a32728fd6bdeeab996c887fdb2fb", - "reference": "0c20707dcf30a32728fd6bdeeab996c887fdb2fb", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", + "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", "shasum": "" }, "require": { - "ext-curl": "*", - "php": ">=5.3.2" + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0" }, "require-dev": { - "satooshi/php-coveralls": "dev-master" + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4.x-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "psr-0": { - "WebDriver": "lib/" + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "Apache-2.0" + "MIT" ], "authors": [ { - "name": "Justin Bishop", - "email": "jubishop@gmail.com", - "role": "Developer" - }, - { - "name": "Anthon Pang", - "email": "apang@softwaredevelopment.ca", - "role": "Fork Maintainer" + "name": "Mike van Riel", + "email": "me@mikevanriel.com" } ], - "description": "PHP WebDriver for Selenium 2", - "homepage": "http://instaclick.com/", - "keywords": [ - "browser", - "selenium", - "webdriver", - "webtest" - ], - "time": "2015-06-15 20:19:33" + "time": "2016-11-25T06:54:22+00:00" }, { - "name": "psr/container", - "version": "1.0.0", + "name": "phpspec/prophecy", + "version": "v1.7.0", "source": { "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" + "url": "https://github.com/phpspec/prophecy.git", + "reference": "93d39f1f7f9326d746203c7c056f300f7f126073" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/93d39f1f7f9326d746203c7c056f300f7f126073", + "reference": "93d39f1f7f9326d746203c7c056f300f7f126073", "shasum": "" }, "require": { - "php": ">=5.3.0" + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", + "sebastian/comparator": "^1.1|^2.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5|^3.2", + "phpunit/phpunit": "^4.8 || ^5.6.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.6.x-dev" } }, "autoload": { - "psr-4": { - "Psr\\Container\\": "src/" + "psr-0": { + "Prophecy\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -5179,90 +5074,247 @@ ], "authors": [ { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" } ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "time": "2017-03-02T20:05:34+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "4.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^5.6 || ^7.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.2 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", + "sebastian/environment": "^1.3.2 || ^2.0", + "sebastian/version": "^1.0 || ^2.0" + }, + "require-dev": { + "ext-xdebug": "^2.1.4", + "phpunit/phpunit": "^5.7" + }, + "suggest": { + "ext-xdebug": "^2.5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } ], - "time": "2017-02-14 16:28:37" + "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": "2017-04-02T07:44:40+00:00" }, { - "name": "psr/http-message", - "version": "1.0.1", + "name": "phpunit/php-file-iterator", + "version": "1.4.2", "source": { "type": "git", - "url": "https://github.com/php-fig/http-message.git", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=5.3.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.4.x-dev" } }, "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.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": "2016-10-03T07:40:28+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": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Common interface for HTTP messages", - "homepage": "https://github.com/php-fig/http-message", + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" + "template" ], - "time": "2016-08-06 14:39:51" + "time": "2015-06-21T13:50:34+00:00" }, { - "name": "sebastian/diff", - "version": "1.4.1", + "name": "phpunit/php-timer", + "version": "1.0.9", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e" + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e", - "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2017-02-26T11:10:40+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "1.4.11", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/e03f8f67534427a787e21a385a67ec3ca6978ea7", + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7", "shasum": "" }, "require": { + "ext-tokenizer": "*", "php": ">=5.3.3" }, "require-dev": { - "phpunit/phpunit": "~4.8" + "phpunit/phpunit": "~4.2" }, "type": "library", "extra": { @@ -5280,21 +5332,782 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" } ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", "keywords": [ - "diff" + "tokenizer" + ], + "time": "2017-02-27T10:12:30+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "5.7.19", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "69c4f49ff376af2692bad9cebd883d17ebaa98a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/69c4f49ff376af2692bad9cebd883d17ebaa98a1", + "reference": "69c4f49ff376af2692bad9cebd883d17ebaa98a1", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "~1.3", + "php": "^5.6 || ^7.0", + "phpspec/prophecy": "^1.6.2", + "phpunit/php-code-coverage": "^4.0.4", + "phpunit/php-file-iterator": "~1.4", + "phpunit/php-text-template": "~1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "^3.2", + "sebastian/comparator": "^1.2.4", + "sebastian/diff": "~1.2", + "sebastian/environment": "^1.3.4 || ^2.0", + "sebastian/exporter": "~2.0", + "sebastian/global-state": "^1.1", + "sebastian/object-enumerator": "~2.0", + "sebastian/resource-operations": "~1.0", + "sebastian/version": "~1.0.3|~2.0", + "symfony/yaml": "~2.1|~3.0" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2" + }, + "require-dev": { + "ext-pdo": "*" + }, + "suggest": { + "ext-xdebug": "*", + "phpunit/php-invoker": "~1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.7.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": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2017-04-03T02:22:27+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "3.4.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "3ab72b65b39b491e0c011e2e09bb2206c2aa8e24" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/3ab72b65b39b491e0c011e2e09bb2206c2aa8e24", + "reference": "3ab72b65b39b491e0c011e2e09bb2206c2aa8e24", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.6 || ^7.0", + "phpunit/php-text-template": "^1.2", + "sebastian/exporter": "^1.2 || ^2.0" + }, + "conflict": { + "phpunit/phpunit": "<5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.4" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" ], - "time": "2015-12-08 07:14:41" + "time": "2016-12-08T20:27:08+00:00" + }, + { + "name": "psr/container", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "time": "2017-02-14T16:28:37+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": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/diff": "~1.2", + "sebastian/exporter": "~1.2 || ~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2017-01-29T09:50:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e", + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "time": "2015-12-08T07:14:41+00:00" + }, + { + "name": "sebastian/environment", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.0" + }, + "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" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2016-11-26T07:53:53+00:00" + }, + { + "name": "sebastian/exporter", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "~4.4" + }, + "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": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2016-11-19T08:54:04+00:00" + }, + { + "name": "sebastian/global-state", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2015-10-12T03:26:01+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7", + "shasum": "" + }, + "require": { + "php": ">=5.6", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~5" + }, + "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" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2017-02-18T15:18:39+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "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": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2016-11-19T07:33:16+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "shasum": "" + }, + "require": { + "php": ">=5.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": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2015-07-28T20:34:47+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/phpunit-bridge", + "version": "v3.2.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/phpunit-bridge.git", + "reference": "00916603c524b8048906de460b7ea0dfa1651281" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/00916603c524b8048906de460b7ea0dfa1651281", + "reference": "00916603c524b8048906de460b7ea0dfa1651281", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "conflict": { + "phpunit/phpunit": ">=6.0" + }, + "suggest": { + "ext-zip": "Zip support is required when using bin/simple-phpunit", + "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" + }, + "bin": [ + "bin/simple-phpunit" + ], + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Bridge\\PhpUnit\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony PHPUnit Bridge", + "homepage": "https://symfony.com", + "time": "2017-04-12T14:13:17+00:00" } ], "aliases": [], diff --git a/features/bootstrap/FeatureContext.php b/features/bootstrap/FeatureContext.php index 8ac305724..65c963595 100644 --- a/features/bootstrap/FeatureContext.php +++ b/features/bootstrap/FeatureContext.php @@ -1,25 +1,57 @@ array('username' => 'Load', 'password' => 'admin', 'roles'=> array('ROLE_ADMIN')), + ); /** - * You might have to manually create those accounts. + * @var array */ - public $username_password = array('admin' => 'admin', 'moderateur' => 'moderateur', 'user'=>'user'); + private $classes; + + /** + * @var ManagerRegistry + */ + private $doctrine; + + /** + * @var \Doctrine\Common\Persistence\ObjectManager + */ + private $manager; + + /** + * @var SchemaTool + */ + private $schemaTool; + + /** + * @var KernelInterface + */ + private $kernel; + + public $username_password = array('admin' => 'admin', 'moderateur' => 'moderateur', 'user' => 'user'); /** * Initializes context. @@ -27,36 +59,46 @@ class FeatureContext extends MinkContext implements Context * Every scenario gets its own context instance. * You can also pass arbitrary arguments to the * context constructor through behat.yml. + * @param ManagerRegistry $doctrine + * @param KernelInterface $kernel */ - public function __construct() + public function __construct(ManagerRegistry $doctrine, KernelInterface $kernel) { - } + $this->doctrine = $doctrine; + $this->manager = $doctrine->getManager(); + $this->schemaTool = new SchemaTool($this->manager); + $this->classes = $this->manager->getMetadataFactory()->getAllMetadata(); - /** - * @Given /^I am logged in as "([^"]*)"$/ - */ - public function iAmLoggedInAs($username) - { - $this->visit("/login"); - $this->fillField("Nom d'utilisateur", $username); - $this->fillField("Mot de passe", $this->username_password[$username]); - $this->pressButton("Connexion"); + $this->kernel = $kernel; } /** - * @BeforeSuite + * @BeforeScenario @createSchema */ - public static function prepare(BeforeSuiteScope $scope) + public function createDatabase() { - exec('php bin/console doctrine:fixtures:load -n -e test'); + $this->schemaTool->createSchema($this->classes); + $application = new Application($this->kernel); + $application->setAutoExit(false); + + + $input = new ArrayInput(array( + 'command' => 'doctrine:fixtures:load', + '-n' => true, + '-e' => 'test', + )); + $output = new BufferedOutput(); + $application->run($input, $output); + } /** - * @AfterScenario @database + * @AfterScenario @dropSchema + * Beware : the annotation in cucumber should also match the case (dropschema is invalid) */ - public static function cleanUp(AfterScenarioScope $scope) + public function dropDatabase() { - exec('php bin/console doctrine:fixtures:load -n -e test'); + $this->schemaTool->dropSchema($this->classes); } @@ -64,10 +106,21 @@ public static function cleanUp(AfterScenarioScope $scope) public function afterStep(AfterStepScope $event) { if (!$event->getTestResult()->isPassed()) { - $this->showLastResponse(); + //$this->printLastResponse(); } } + /** + * @Given /^I am logged in as "([^"]*)"$/ + */ + public function iAmLoggedInAs($username) + { + $this->visit("/login"); + $this->fillField("_username", $username); + $this->fillField("_password", self::DEFAULT_USERS[$username]['password']); + $this->pressButton("Connexion"); + } + /** * @Given /^I see the "([^"]*)" etude page$/ */ @@ -100,4 +153,7 @@ public function theUserIsActive($username) $doctrine->getManager()->flush(); } + } + + diff --git a/features/personne/filiere_crud.feature b/features/personne/filiere_crud.feature index f1ce6061e..25c461883 100644 --- a/features/personne/filiere_crud.feature +++ b/features/personne/filiere_crud.feature @@ -1,9 +1,11 @@ Feature: Filiere - As an admin I need to be able to CRUD a Filiere. + As an admin I am be able to CRUD a Filiere. + # the "@createSchema" annotation provided by Behat creates a temporary SQLite database for testing the API + @createSchema Scenario: I can see Filiere Homepage & Add Filiere button Given I am logged in as "admin" - When I go to "/personne/poste" + Given I am on "/personne/poste" Then the response status code should be 200 Then I should see "Liste des Filières" And I should see "Ajouter une filière" @@ -11,7 +13,7 @@ Feature: Filiere Scenario: I can create a new Filiere Given I am logged in as "admin" - When I go to "/personne/filiere/add" + Given I am on "/personne/filiere/add" Then the response status code should be 200 When I fill in "Nom" with "Mecanique" And I press "Valider" @@ -21,7 +23,7 @@ Feature: Filiere Scenario: I can edit a Filiere Given I am logged in as "admin" - When I go to "/personne/filiere/modifier/1" + Given I am on "/personne/filiere/modifier/1" Then the response status code should be 200 When I fill in "Nom" with "Testing science" And I press "Valider" @@ -29,9 +31,11 @@ Feature: Filiere And I should see "Filière modifiée" And I should see "Testing science" + # The "@dropSchema" annotation must be added on the last scenario of the feature file to drop the temporary SQLite database + @dropSchema Scenario: I can delete a Poste Given I am logged in as "admin" - When I go to "/personne/filiere/modifier/1" + Given I am on "/personne/filiere/modifier/1" Then the response status code should be 200 And I press "Supprimer la filière" Then the url should match "/personne/poste" diff --git a/features/personne/poste_crud.feature b/features/personne/poste_crud.feature index c429ddf80..5bd0fcd54 100644 --- a/features/personne/poste_crud.feature +++ b/features/personne/poste_crud.feature @@ -1,6 +1,8 @@ Feature: Poste - As an admin I need to be able to CRUD a Poste. + As an admin I am able to CRUD a Poste. + # the "@createSchema" annotation provided by Behat creates a temporary SQLite database for testing the API + @createSchema Scenario: I can see Poste Homepage & Add Poste button Given I am logged in as "admin" When I go to "/personne/poste" @@ -30,6 +32,8 @@ Feature: Poste And I should see "Poste modifié" And I should see "Responsable Tests" + # The "@dropSchema" annotation must be added on the last scenario of the feature file to drop the temporary SQLite database + @dropSchema Scenario: I can delete a Poste Given I am logged in as "admin" When I go to "/personne/poste/modifier/1" diff --git a/features/suivi/etude_crud.feature b/features/suivi/etude_crud.feature index e9f1a0fb1..8e40c915e 100644 --- a/features/suivi/etude_crud.feature +++ b/features/suivi/etude_crud.feature @@ -1,9 +1,15 @@ Feature: Etude - I need to be able to CRUD an Etude. + I am able to CRUD an Etude. + # the "@createSchema" annotation provided by Behat creates a temporary SQLite database for testing the API + @createSchema Scenario: I can see Etude pipeline Given I am logged in as "admin" When I go to "/suivi" Then the response status code should be 200 Then I should see "Etudes en Négociation" + # The "@dropSchema" annotation must be added on the last scenario of the feature file to drop the temporary SQLite database + @dropSchema + Scenario: Void + Given I am logged in as "admin" \ No newline at end of file diff --git a/features/user/user.feature b/features/user/user.feature index 4478ffdb7..befc67669 100644 --- a/features/user/user.feature +++ b/features/user/user.feature @@ -1,18 +1,22 @@ Feature: CRUD a user - I nedd to be able to register and connect. + I am able to register and connect. + # the "@createSchema" annotation provided by Behat creates a temporary SQLite database for testing the API + @createSchema Scenario: Registration link is visible Given I am on "/" Then I should see "Inscription" + # The "@dropSchema" annotation must be added on the last scenario of the feature file to drop the temporary SQLite database + @dropSchema Scenario: I can register Given I am on "/register" Then the response status code should be 200 And I fill in "Login" with "test_user" And I fill in "Email" with "test_user" And I fill in "Mot de passe" with "test_user" - And I fill in "Confirmation mot de passe" with "test_user" + And I fill in "fos_user_registration_form_plainPassword_second" with "test_user" And I press "_submit" Then I should see "L'utilisateur a été créé avec succès"