Skip to content

Commit c65eae0

Browse files
authored
🔀 feature/get-aws-services
✨ add endpoint GET /resources/aws
2 parents 38128dd + 040c964 commit c65eae0

18 files changed

+3072
-84
lines changed

.env.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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
7+
8+
MONGODB_DB=symfony_test

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@
1717
###> lexik/jwt-authentication-bundle ###
1818
/config/jwt/*.pem
1919
###< lexik/jwt-authentication-bundle ###
20+
21+
###> symfony/phpunit-bridge ###
22+
.phpunit.result.cache
23+
/phpunit.xml
24+
###< symfony/phpunit-bridge ###

bin/phpunit

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (!ini_get('date.timezone')) {
5+
ini_set('date.timezone', 'UTC');
6+
}
7+
8+
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
9+
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
10+
require PHPUNIT_COMPOSER_INSTALL;
11+
PHPUnit\TextUI\Command::main();
12+
} else {
13+
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
14+
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
15+
exit(1);
16+
}
17+
18+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
19+
}

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"symfony/framework-bundle": "6.1.*",
2323
"symfony/runtime": "6.1.*",
2424
"symfony/security-bundle": "6.1.*",
25+
"symfony/serializer": "6.1.*",
2526
"symfony/validator": "6.1.*",
2627
"symfony/yaml": "6.1.*"
2728
},
@@ -82,6 +83,10 @@
8283
"friendsofphp/php-cs-fixer": "^3.9",
8384
"phpro/grumphp": "^1.13",
8485
"phpstan/phpstan": "^1.8",
85-
"symfony/maker-bundle": "^1.44"
86+
"phpunit/phpunit": "^9.5",
87+
"symfony/browser-kit": "6.1.*",
88+
"symfony/css-selector": "6.1.*",
89+
"symfony/maker-bundle": "^1.44",
90+
"symfony/phpunit-bridge": "^6.1"
8691
}
8792
}

0 commit comments

Comments
 (0)