Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1937800

Browse files
committed
functional tests
1 parent 1e8257f commit 1937800

File tree

11 files changed

+2334
-48
lines changed

11 files changed

+2334
-48
lines changed

.env.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# define your env variables for the test env here
2+
KERNEL_CLASS='App\Kernel'
3+
APP_SECRET='$ecretf0rt3st'
4+
SYMFONY_DEPRECATIONS_HELPER=999999
5+
PANTHER_APP_ENV=panther
6+
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,14 @@
88
/var/
99
/vendor/
1010
###< symfony/framework-bundle ###
11+
12+
###> symfony/phpunit-bridge ###
13+
.phpunit
14+
.phpunit.result.cache
15+
/phpunit.xml
16+
###< symfony/phpunit-bridge ###
17+
18+
###> phpunit/phpunit ###
19+
/phpunit.xml
20+
.phpunit.result.cache
21+
###< phpunit/phpunit ###

bin/phpunit

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
5+
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
6+
exit(1);
7+
}
8+
9+
if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
10+
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
11+
}
12+
13+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,14 @@
7777
"require-dev": {
7878
"doctrine/doctrine-fixtures-bundle": "^3.4",
7979
"fakerphp/faker": "^1.14",
80+
"justinrainbow/json-schema": "^5.2",
81+
"phpunit/phpunit": "^9.5",
82+
"symfony/browser-kit": "^5.2",
83+
"symfony/css-selector": "^5.2",
8084
"symfony/debug-bundle": "^5.2",
8185
"symfony/maker-bundle": "^1.31",
8286
"symfony/monolog-bundle": "^3.0",
87+
"symfony/phpunit-bridge": "^5.2",
8388
"symfony/stopwatch": "^5.2",
8489
"symfony/var-dumper": "^5.2",
8590
"symfony/web-profiler-bundle": "^5.2"

0 commit comments

Comments
 (0)