Skip to content

Commit b3a79eb

Browse files
committed
Added HealthCheckController, SymfonyFrameworkExtraBundle to render Controller annotations and a basic unit test for the brand new HealthCheckController
1 parent a5647fe commit b3a79eb

File tree

13 files changed

+704
-5
lines changed

13 files changed

+704
-5
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77

88
###> PHPStorm ####
99
.idea
10-
###< PHPStorm ####
10+
###< PHPStorm ####
11+
12+
###> symfony/phpunit-bridge ###
13+
.phpunit
14+
/phpunit.xml
15+
###< symfony/phpunit-bridge ###

bin/phpunit

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

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
"require": {
55
"php": "^7.1.3",
66
"ext-iconv": "*",
7+
"sensio/framework-extra-bundle": "^5.1",
78
"symfony/console": "^4.0",
89
"symfony/flex": "^1.0",
910
"symfony/framework-bundle": "^4.0",
1011
"symfony/lts": "^4@dev",
1112
"symfony/yaml": "^4.0"
1213
},
1314
"require-dev": {
14-
"symfony/dotenv": "^4.0"
15+
"symfony/dotenv": "^4.0",
16+
"symfony/phpunit-bridge": "^4.0"
1517
},
1618
"config": {
1719
"preferred-install": {

0 commit comments

Comments
 (0)