diff --git a/phpunit/phpunit/4.7/.env.test b/phpunit/phpunit/4.7/.env.test index 24a43c03b..9e7162f0b 100644 --- a/phpunit/phpunit/4.7/.env.test +++ b/phpunit/phpunit/4.7/.env.test @@ -2,3 +2,5 @@ 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/phpunit/phpunit/4.7/phpunit.xml.dist b/phpunit/phpunit/4.7/phpunit.xml.dist index 214665a4e..4b9029be4 100644 --- a/phpunit/phpunit/4.7/phpunit.xml.dist +++ b/phpunit/phpunit/4.7/phpunit.xml.dist @@ -24,4 +24,18 @@ src + + + + + + diff --git a/phpunit/phpunit/4.7/post-install.txt b/phpunit/phpunit/4.7/post-install.txt deleted file mode 100644 index 937bc071a..000000000 --- a/phpunit/phpunit/4.7/post-install.txt +++ /dev/null @@ -1,11 +0,0 @@ - - Suggest: install Symfony's PHPUnit Bridge instead of phpunit/phpunit - - -Symfony's PHPUnit bridge is a wrapper around PHPUnit that adds reports for deprecated code -calls, an isolated PHPUnit that's separate from the dependencies of your app and more. -See: https://symfony.com/doc/current/components/phpunit_bridge.html. - - * If you want to install the PHPUnit bridge: - 1. Remove PHPUnit: composer remove --dev phpunit/phpunit - 2. Install Symfony's bridge: composer require --dev symfony/phpunit-bridge diff --git a/symfony/phpunit-bridge/5.3/.env.test b/symfony/phpunit-bridge/5.3/.env.test new file mode 100644 index 000000000..9e7162f0b --- /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 000000000..0fb80c9af --- /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 000000000..7bb153212 --- /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 000000000..469dccee4 --- /dev/null +++ b/symfony/phpunit-bridge/5.3/tests/bootstrap.php @@ -0,0 +1,11 @@ +bootEnv(dirname(__DIR__).'/.env'); +}