From 390904c2efce45ce23e02f45c3b0c859f4640b9a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 13 Feb 2019 19:54:41 +0000 Subject: [PATCH] Require test pack recipe --- .env.test | 4 + .gitignore | 5 + bin/phpunit | 19 ++ composer.json | 1 + composer.lock | 442 ++++++++++++++++++++++++++++++++++++++++++++++- phpunit.xml.dist | 31 ++++ symfony.lock | 30 ++++ tests/.gitignore | 0 8 files changed, 531 insertions(+), 1 deletion(-) create mode 100644 .env.test create mode 100755 bin/phpunit create mode 100644 phpunit.xml.dist create mode 100644 tests/.gitignore diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..414430e --- /dev/null +++ b/.env.test @@ -0,0 +1,4 @@ +# define your env variables for the test env here +KERNEL_CLASS='App\Kernel' +APP_SECRET='s$cretf0rt3st' +SYMFONY_DEPRECATIONS_HELPER=999999 diff --git a/.gitignore b/.gitignore index 136901b..50e13f7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,8 @@ /var/ /vendor/ ###< symfony/framework-bundle ### + +###> symfony/phpunit-bridge ### +.phpunit +/phpunit.xml +###< symfony/phpunit-bridge ### diff --git a/bin/phpunit b/bin/phpunit new file mode 100755 index 0000000..cd7e32e --- /dev/null +++ b/bin/phpunit @@ -0,0 +1,19 @@ +#!/usr/bin/env php +=7.1", + "symfony/browser-kit": "^4.0", + "symfony/polyfill-php72": "^1.9", + "symfony/process": "^3.4 || ^4.0" + }, + "conflict": { + "symfony/browser-kit": "4.1.0" + }, + "require-dev": { + "fabpot/goutte": "^3.2.3", + "guzzlehttp/guzzle": "^6.3", + "phpunit/phpunit": "^7.0", + "symfony/css-selector": "^3.4 || ^4.0", + "symfony/framework-bundle": "^3.4 || ^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Panther\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Kévin Dunglas", + "email": "dunglas@gmail.com", + "homepage": "https://dunglas.fr" + } + ], + "description": "A browser testing and web scraping library for PHP and Symfony.", + "homepage": "https://dunglas.fr", + "keywords": [ + "e2e", + "scraping", + "selenium", + "symfony", + "testing", + "webdriver" + ], + "time": "2018-09-26T10:35:52+00:00" + }, + { + "name": "symfony/phpunit-bridge", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/phpunit-bridge.git", + "reference": "4ea7d80a7512ddc41d5af598978edcd395140edc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/4ea7d80a7512ddc41d5af598978edcd395140edc", + "reference": "4ea7d80a7512ddc41d5af598978edcd395140edc", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "conflict": { + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.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": "4.2-dev" + }, + "thanks": { + "name": "phpunit/phpunit", + "url": "https://github.com/sebastianbergmann/phpunit" + } + }, + "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": "2019-01-24T21:39:51+00:00" + }, { "name": "symfony/polyfill-php72", "version": "v1.10.0", @@ -1903,6 +2265,84 @@ ], "time": "2018-09-21T13:07:52+00:00" }, + { + "name": "symfony/process", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "6c05edb11fbeff9e2b324b4270ecb17911a8b7ad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/6c05edb11fbeff9e2b324b4270ecb17911a8b7ad", + "reference": "6c05edb11fbeff9e2b324b4270ecb17911a8b7ad", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "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 Process Component", + "homepage": "https://symfony.com", + "time": "2019-01-24T22:05:03+00:00" + }, + { + "name": "symfony/test-pack", + "version": "v1.0.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/test-pack.git", + "reference": "1792b80cc2da5310e84afa983682b71dfc409d17" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/test-pack/zipball/1792b80cc2da5310e84afa983682b71dfc409d17", + "reference": "1792b80cc2da5310e84afa983682b71dfc409d17", + "shasum": "" + }, + "require": { + "php": "^7.0", + "symfony/browser-kit": "*", + "symfony/css-selector": "*", + "symfony/panther": "*", + "symfony/phpunit-bridge": "*" + }, + "type": "symfony-pack", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A pack for functional and end-to-end testing within a Symfony app", + "time": "2018-12-10T12:13:08+00:00" + }, { "name": "symfony/var-dumper", "version": "v4.2.3", diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..134c69e --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,31 @@ + + + + + + + + + + + + + tests + + + + + + src + + + + + + + diff --git a/symfony.lock b/symfony.lock index 471b832..dac8256 100644 --- a/symfony.lock +++ b/symfony.lock @@ -2,6 +2,9 @@ "doctrine/inflector": { "version": "v1.3.0" }, + "facebook/webdriver": { + "version": "1.6.0" + }, "guzzlehttp/guzzle": { "version": "6.3.3" }, @@ -32,6 +35,9 @@ "ralouphie/getallheaders": { "version": "2.0.5" }, + "symfony/browser-kit": { + "version": "v4.2.3" + }, "symfony/cache": { "version": "v4.2.3" }, @@ -50,12 +56,18 @@ "symfony/contracts": { "version": "v1.0.2" }, + "symfony/css-selector": { + "version": "v4.2.3" + }, "symfony/debug": { "version": "v4.2.3" }, "symfony/dependency-injection": { "version": "v4.2.3" }, + "symfony/dom-crawler": { + "version": "v4.2.3" + }, "symfony/dotenv": { "version": "v4.2.3" }, @@ -101,12 +113,27 @@ "ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f" } }, + "symfony/panther": { + "version": "v0.2.0" + }, + "symfony/phpunit-bridge": { + "version": "4.1", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.1", + "ref": "0e548dd90adba18fabd4ef419b14d361fe4d6c74" + } + }, "symfony/polyfill-mbstring": { "version": "v1.10.0" }, "symfony/polyfill-php72": { "version": "v1.10.0" }, + "symfony/process": { + "version": "v4.2.3" + }, "symfony/routing": { "version": "4.2", "recipe": { @@ -116,6 +143,9 @@ "ref": "5374e24d508ba8fd6ba9eb15170255fdb778316a" } }, + "symfony/test-pack": { + "version": "v1.0.5" + }, "symfony/var-dumper": { "version": "v4.2.3" }, diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..e69de29