Skip to content

Commit

Permalink
chore: implements functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
BibaltiK committed Jul 26, 2024
1 parent 448132b commit 908b1a7
Show file tree
Hide file tree
Showing 15 changed files with 873 additions and 121 deletions.
227 changes: 116 additions & 111 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,115 +1,120 @@
{
"name": "stormannsgal/stormannsgal-api",
"description": "settler or not",
"type": "project",
"license": "BSD-3-Clause",
"keywords": [
"Browsergame",
"OpenSource",
"Economic simulations",
"Trading simulation"
],
"homepage": "https://github.com/Stormannsgal",
"support": {
"docs": "https://github.com/Stormannsgal",
"issues": "https://github.com/Stormannsgal/stormannsgal-api/issues",
"source": "https://github.com/Stormannsgal/stormannsgal-api"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/package-versions-deprecated": true,
"laminas/laminas-component-installer": true
},
"platform": {
"php": "8.3.0"
}
},
"extra": {
"laminas": {
"component-whitelist": [
"mezzio/mezzio",
"mezzio/mezzio-helpers",
"mezzio/mezzio-router",
"laminas/laminas-httphandlerrunner",
"mezzio/mezzio-fastroute"
]
}
},
"require": {
"php": "~8.3.0",
"ext-json": "*",
"ext-openssl": "*",
"ext-pdo": "*",
"composer/package-versions-deprecated": "^1.10.99",
"doctrine/migrations": "^3.6",
"envms/fluentpdo": "^2.2",
"jetbrains/phpstorm-attributes": "^1.0",
"laminas/laminas-component-installer": "^2.6 || ^3.0",
"laminas/laminas-config-aggregator": "^1.6",
"laminas/laminas-diactoros": "^2.24.2",
"laminas/laminas-servicemanager": "^3.4",
"laminas/laminas-stdlib": "^3.6",
"mezzio/mezzio": "^3.7",
"mezzio/mezzio-fastroute": "^3.0.3",
"mezzio/mezzio-helpers": "^5.7",
"ramsey/uuid": "^4.7",
"zircote/swagger-php": "^4.7"
},
"require-dev": {
"filp/whoops": "^2.7.1",
"laminas/laminas-development-mode": "^3.3.0",
"mezzio/mezzio-tooling": "^2.8",
"overtrue/phplint": "^9.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpunit/php-code-coverage": "^10.0",
"phpunit/phpunit": "^10.0",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.7",
"slevomat/coding-standard" : "^8.14"
},
"autoload": {
"psr-4": {
"Stormannsgal\\App\\": "src/App/",
"Stormannsgal\\Core\\": "src/Core/",
"Stormannsgal\\Game\\": "src/Game/"
}
"name": "stormannsgal/stormannsgal-api",
"description": "settler or not",
"type": "project",
"license": "BSD-3-Clause",
"keywords": [
"Browsergame",
"OpenSource",
"Economic simulations",
"Trading simulation"
],
"homepage": "https://github.com/Stormannsgal",
"support": {
"docs": "https://github.com/Stormannsgal",
"issues": "https://github.com/Stormannsgal/stormannsgal-api/issues",
"source": "https://github.com/Stormannsgal/stormannsgal-api"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/package-versions-deprecated": true,
"laminas/laminas-component-installer": true
},
"autoload-dev": {
"psr-4": {
"Stormannsgal\\AppTest\\": "tests/AppTest/",
"Stormannsgal\\CoreTest\\": "tests/CoreTest/",
"Stormannsgal\\GameTest\\": "tests/GameTest/"
}
},
"scripts": {
"post-create-project-cmd": [
"@development-enable"
],
"development-disable": "laminas-development-mode disable",
"development-enable": "laminas-development-mode enable",
"development-status": "laminas-development-mode status",
"mezzio": "laminas --ansi",
"clear-config-cache": "php bin/clear-config-cache.php",
"enable-codestandard": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
"doctrine": "php ./bin/migrations.php",
"openapi": "php ./vendor/bin/openapi ./src -f json -o ./public/api/docs/swagger.json",
"phplint": "vendor/bin/phplint",
"phpcs": "phpcs --standard=phpcs.xml -s -p",
"phpcbf": "phpcbf --standard=phpcs.xml -p",
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon",
"unittest": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --colors=always --configuration phpunit_unittest.xml",
"functionaltest": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --colors=always --configuration phpunit_functionaltest.xml",
"test": [
"@unittest"
],
"check": [
"@phplint",
"@phpcs",
"@phpstan",
"@test"
]
"platform": {
"php": "8.3.0"
}
},
"extra": {
"laminas": {
"component-whitelist": [
"mezzio/mezzio",
"mezzio/mezzio-helpers",
"mezzio/mezzio-router",
"laminas/laminas-httphandlerrunner",
"mezzio/mezzio-fastroute"
]
}
},
"require": {
"php": "~8.3.0",
"ext-json": "*",
"ext-openssl": "*",
"ext-pdo": "*",
"composer/package-versions-deprecated": "^1.10.99",
"doctrine/migrations": "^3.6",
"envms/fluentpdo": "^2.2",
"jetbrains/phpstorm-attributes": "^1.0",
"laminas/laminas-component-installer": "^2.6 || ^3.0",
"laminas/laminas-config-aggregator": "^1.6",
"laminas/laminas-diactoros": "^2.24.2",
"laminas/laminas-servicemanager": "^3.4",
"laminas/laminas-stdlib": "^3.6",
"laminas/laminas-log": "^2.17",
"mezzio/mezzio": "^3.7",
"mezzio/mezzio-fastroute": "^3.0.3",
"mezzio/mezzio-helpers": "^5.7",
"ramsey/uuid": "^4.7",
"zircote/swagger-php": "^4.7"
},
"require-dev": {
"filp/whoops": "^2.7.1",
"laminas/laminas-development-mode": "^3.3.0",
"mezzio/mezzio-tooling": "^2.8",
"overtrue/phplint": "^9.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpunit/php-code-coverage": "^10.0",
"phpunit/phpunit": "^10.0",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.7",
"slevomat/coding-standard": "^8.14",
"helmich/phpunit-json-assert": "^3.5",
"trinet/mezzio-test": "^1.1"
},
"autoload": {
"psr-4": {
"Stormannsgal\\App\\": "src/App/",
"Stormannsgal\\Core\\": "src/Core/",
"Stormannsgal\\Game\\": "src/Game/"
}
},
"autoload-dev": {
"psr-4": {
"Stormannsgal\\AppTest\\": "tests/AppTest/",
"Stormannsgal\\CoreTest\\": "tests/CoreTest/",
"Stormannsgal\\GameTest\\": "tests/GameTest/",
"Stormannsgal\\FunctionalTest\\": "tests/Functional/"
}
},
"scripts": {
"post-create-project-cmd": [
"@development-enable"
],
"development-disable": "laminas-development-mode disable",
"development-enable": "laminas-development-mode enable",
"development-status": "laminas-development-mode status",
"mezzio": "laminas --ansi",
"clear-config-cache": "php bin/clear-config-cache.php",
"enable-codestandard": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
"doctrine": "php ./bin/migrations.php",
"openapi": "php ./vendor/bin/openapi ./src -f json -o ./public/api/docs/swagger.json",
"phplint": "vendor/bin/phplint",
"phpcs": "phpcs --standard=phpcs.xml -s -p",
"phpcbf": "phpcbf --standard=phpcs.xml -p",
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon",
"unittest": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --colors=always --configuration phpunit_unittest.xml",
"functionaltest": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --colors=always --configuration phpunit_functionaltest.xml",
"test": [
"@unittest",
"@functionaltest"
],
"check": [
"@phplint",
"@phpcs",
"@phpstan",
"@test"
]
}
}
Loading

0 comments on commit 908b1a7

Please sign in to comment.