Implemented testing structure

This commit is contained in:
Kevin Frantz 2018-09-05 08:49:58 +02:00
parent 88f604ceca
commit 34dfbaac42
7 changed files with 1236 additions and 9 deletions

2
administration/build.sh Normal file
View File

@ -0,0 +1,2 @@
cp .env.dist docker-symfony/.env
(cd ../docker-symfony/ && docker-compose build && docker-compose up -d)

1
administration/test.sh Normal file
View File

@ -0,0 +1 @@
(cd ../docker-symfony/ && docker-compose exec php php -d memory_limit=128M /var/www/symfony/vendor/bin/phpunit)

View File

@ -20,3 +20,7 @@
.buildpath
.project
.settings/
###> phpunit/phpunit ###
/phpunit.xml
###< phpunit/phpunit ###

View File

@ -29,7 +29,8 @@
"symfony/maker-bundle": "^1.0",
"symfony/profiler-pack": "*",
"symfony/test-pack": "*",
"symfony/web-server-bundle": "*"
"symfony/web-server-bundle": "*",
"phpunit/phpunit": "^7"
},
"config": {
"preferred-install": {

1161
application/composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -86,12 +86,21 @@
"monolog/monolog": {
"version": "1.23.0"
},
"myclabs/deep-copy": {
"version": "1.8.1"
},
"nikic/php-parser": {
"version": "v4.0.3"
},
"ocramius/proxy-manager": {
"version": "2.1.1"
},
"phar-io/manifest": {
"version": "1.0.3"
},
"phar-io/version": {
"version": "2.0.1"
},
"phpdocumentor/reflection-common": {
"version": "1.0.1"
},
@ -101,6 +110,33 @@
"phpdocumentor/type-resolver": {
"version": "0.4.0"
},
"phpspec/prophecy": {
"version": "1.8.0"
},
"phpunit/php-code-coverage": {
"version": "6.0.7"
},
"phpunit/php-file-iterator": {
"version": "2.0.1"
},
"phpunit/php-text-template": {
"version": "1.2.1"
},
"phpunit/php-timer": {
"version": "2.0.0"
},
"phpunit/php-token-stream": {
"version": "3.0.0"
},
"phpunit/phpunit": {
"version": "4.7",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "4.7",
"ref": "c276fa48d4713de91eb410289b3b1834acb7e403"
}
},
"psr/cache": {
"version": "1.0.1"
},
@ -116,6 +152,39 @@
"psr/simple-cache": {
"version": "1.0.1"
},
"sebastian/code-unit-reverse-lookup": {
"version": "1.0.1"
},
"sebastian/comparator": {
"version": "3.0.2"
},
"sebastian/diff": {
"version": "3.0.1"
},
"sebastian/environment": {
"version": "3.1.0"
},
"sebastian/exporter": {
"version": "3.1.0"
},
"sebastian/global-state": {
"version": "2.0.0"
},
"sebastian/object-enumerator": {
"version": "3.0.3"
},
"sebastian/object-reflector": {
"version": "1.1.1"
},
"sebastian/recursion-context": {
"version": "3.0.0"
},
"sebastian/resource-operations": {
"version": "1.0.0"
},
"sebastian/version": {
"version": "2.0.1"
},
"sensio/framework-extra-bundle": {
"version": "5.2",
"recipe": {
@ -380,6 +449,9 @@
"symfony/yaml": {
"version": "v4.1.4"
},
"theseer/tokenizer": {
"version": "1.1.0"
},
"twig/twig": {
"version": "v2.5.0"
},

View File

@ -1,2 +0,0 @@
cp .env.dist docker-symfony/.env
(cd ./docker-symfony/ && docker-compose build && docker-compose up -d)