From 1a88b62d99ba69499e91a39e5583dfe9f9ef69ef Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Sat, 27 Feb 2021 10:53:40 -0500 Subject: [PATCH] Adding phpunit-bridge 5.3 recipe, which recommends using PHPUnit directly --- symfony/phpunit-bridge/5.3/.env.test | 6 +++ symfony/phpunit-bridge/5.3/bin/phpunit | 16 +++++++ symfony/phpunit-bridge/5.3/manifest.json | 14 ++++++ symfony/phpunit-bridge/5.3/phpunit.xml.dist | 45 +++++++++++++++++++ symfony/phpunit-bridge/5.3/post-install.txt | 7 +++ .../phpunit-bridge/5.3/tests/bootstrap.php | 11 +++++ 6 files changed, 99 insertions(+) create mode 100644 symfony/phpunit-bridge/5.3/.env.test create mode 100755 symfony/phpunit-bridge/5.3/bin/phpunit create mode 100644 symfony/phpunit-bridge/5.3/manifest.json create mode 100644 symfony/phpunit-bridge/5.3/phpunit.xml.dist create mode 100644 symfony/phpunit-bridge/5.3/post-install.txt create mode 100644 symfony/phpunit-bridge/5.3/tests/bootstrap.php diff --git a/symfony/phpunit-bridge/5.3/.env.test b/symfony/phpunit-bridge/5.3/.env.test new file mode 100644 index 00000000..9e7162f0 --- /dev/null +++ b/symfony/phpunit-bridge/5.3/.env.test @@ -0,0 +1,6 @@ +# define your env variables for the test env here +KERNEL_CLASS='App\Kernel' +APP_SECRET='$ecretf0rt3st' +SYMFONY_DEPRECATIONS_HELPER=999999 +PANTHER_APP_ENV=panther +PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots diff --git a/symfony/phpunit-bridge/5.3/bin/phpunit b/symfony/phpunit-bridge/5.3/bin/phpunit new file mode 100755 index 00000000..0fb80c9a --- /dev/null +++ b/symfony/phpunit-bridge/5.3/bin/phpunit @@ -0,0 +1,16 @@ +#!/usr/bin/env php + + + + + + + + + + + + + + + + + tests + + + + + + src + + + + + + + + + + diff --git a/symfony/phpunit-bridge/5.3/post-install.txt b/symfony/phpunit-bridge/5.3/post-install.txt new file mode 100644 index 00000000..7bb15321 --- /dev/null +++ b/symfony/phpunit-bridge/5.3/post-install.txt @@ -0,0 +1,7 @@ + + How to test? + + + * Write test cases in the tests/ folder + * Use MakerBundle's make:test command as a shortcut! + * Run the tests with php bin/phpunit diff --git a/symfony/phpunit-bridge/5.3/tests/bootstrap.php b/symfony/phpunit-bridge/5.3/tests/bootstrap.php new file mode 100644 index 00000000..469dccee --- /dev/null +++ b/symfony/phpunit-bridge/5.3/tests/bootstrap.php @@ -0,0 +1,11 @@ +bootEnv(dirname(__DIR__).'/.env'); +}