--- /dev/null
+{
+ "name": "org/example",
+ "description": "Example composer.json for a project utilizing composer-test-scenarios.",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Author Name",
+ "email": "author@example.com"
+ }
+ ],
+ "autoload":{
+ "psr-4":{
+ "Org\\Example\\": "src"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "Org\\TestUtils\\": "tests/src"
+ }
+ },
+ "require": {
+ "php": ">=5.6.0"
+ },
+ "require-dev": {
+ "g1a/composer-test-scenarios": "^1",
+ "phpunit/phpunit": "^4.8|^5.5.4",
+ "satooshi/php-coveralls": "^2",
+ "squizlabs/php_codesniffer": "^2.7"
+ },
+ "config": {
+ "optimize-autoloader": true,
+ "sort-packages": true,
+ "platform": {
+ "php": "5.6"
+ }
+ },
+ "scripts": {
+ "cs": "phpcs --standard=PSR2 -n src",
+ "cbf": "phpcbf --standard=PSR2 -n src",
+ "unit": "phpunit --colors=always",
+ "lint": [
+ "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
+ "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
+ ],
+ "test": [
+ "@lint",
+ "@unit",
+ "@cs"
+ ],
+ "scenario": "scenarios/install",
+ "post-update-cmd": [
+ "create-scenario symfony2 'symfony/console:^2.8' --platform-php '5.4' --no-lockfile",
+ "create-scenario symfony3 'symfony/console:^3.0' --platform-php '5.6'",
+ "create-scenario symfony4 'symfony/console:^4.0'",
+ "dependency-licenses"
+ ]
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ }
+}