-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * added json based configuration, rabbitmq wip * fix travis
- Loading branch information
Showing
21 changed files
with
1,015 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
/build/ | ||
composer.lock | ||
.php_cs.cache | ||
phpunit.xml | ||
phpunit.xml | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"pdo": { | ||
"dsn": "mysql:host=localhost:3306;dbname=test;charset=utf8", | ||
"user": "test", | ||
"password": "test", | ||
"fixtures": { | ||
"beforeFirstTest": { | ||
"path": "tests/fixtures/before-first-test", | ||
"extension": "sql" | ||
}, | ||
"beforeTest": { | ||
"path": "tests/fixtures/before-test", | ||
"extension": "sql" | ||
}, | ||
"afterTest": { | ||
"path": "tests/fixtures/after-test" | ||
}, | ||
"afterLastTest": { | ||
"path": "tests/fixtures/after-last-test" | ||
} | ||
} | ||
}, | ||
"amqp": { | ||
"host": "localhost", | ||
"port": 5672, | ||
"user": "test", | ||
"password": "test", | ||
"vhost": "test", | ||
"fixtures": { | ||
"beforeFirstTest": { | ||
"purgeQueues": [ | ||
"test-queue" | ||
], | ||
"publishMessages": [ | ||
{ | ||
"exchange": "test-exchange", | ||
"queue": "test-queue", | ||
"routing_key": "before-first-test", | ||
"path": "tests/fixtures/before-first-test", | ||
"extension": "json" | ||
} | ||
] | ||
}, | ||
"beforeTest": { | ||
"purgeQueues": [ | ||
"test-queue" | ||
], | ||
"publishMessages": [ | ||
{ | ||
"exchange": "test-exchange", | ||
"queue": "test-queue", | ||
"routing_key": "before-test", | ||
"path": "tests/fixtures/before-test" | ||
} | ||
] | ||
}, | ||
"afterTest": { | ||
"purgeQueues": [ | ||
"test-queue" | ||
] | ||
}, | ||
"afterLastTest": { | ||
"purgeQueues": [ | ||
"test-queue" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.PHONY : install beautify up down test-unit test-integration debug-test-integration | ||
.DEFAULT : install | ||
|
||
install: | ||
composer install -o | ||
beautify: | ||
vendor/bin/phpcbf --standard=PSR2 src tests | ||
up: | ||
docker-compose up -d --build | ||
down: | ||
docker-compose down --remove-orphans | ||
test-unit: | ||
vendor/bin/phpunit --testdox --verbose --color | ||
test-integration: up | ||
sleep 20 | ||
@-vendor/bin/phpunit --color --testdox --verbose -c phpunit-integration.xml.dist | ||
make down | ||
debug-test-integration: | ||
php -dxdebug.remote_mode=jit vendor/bin/phpunit --no-coverage --color --testdox --group debug -c phpunit-integration.xml.dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.