Skip to content

Commit

Permalink
Merge branch 'master' into KMS-171_basic_migrations
Browse files Browse the repository at this point in the history
Conflicts:
	readme.md
  • Loading branch information
PSkierniewski committed Oct 31, 2015
2 parents a63afd1 + 4c6d459 commit deeeb92
Show file tree
Hide file tree
Showing 22 changed files with 362 additions and 300 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ before_script:

script:
- mkdir -p build/logs
- ./vendor/bin/codecept run --coverage --coverage-xml --coverage-html
- ./vendor/bin/codecept run --coverage --coverage-xml --coverage-html --env platform
- cp tests/_output/coverage.xml build/logs/clover.xml

after_script:
Expand Down
5 changes: 2 additions & 3 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ public function render($request, Exception $e)
if (config('app.debug')) {
$whoops = new Run;
$whoops->pushHandler(new PrettyPageHandler);

return response(
$whoops->handleException($e),
$e->getStatusCode(),
$e->getHeaders()
method_exists($e, 'getStatusCode') ? $e->getStatusCode() : self::SERVER_ERROR,
method_exists($e, 'getHeaders') ? $e->getHeaders() : []
);
} else {
return parent::render($request, $e);
Expand Down
4 changes: 4 additions & 0 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
actor: Tester
namespace: platform
coverage:
enabled: true
remote: false
Expand All @@ -8,11 +9,14 @@ coverage:
exclude:
- app/Http/routes.php
- app/Http/Kernel.php
include:
- vendor/gzero/api
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
"classmap": []
},
"scripts": {
"post-install-cmd": [
Expand Down
Loading

0 comments on commit deeeb92

Please sign in to comment.