Skip to content

Add function to detect errors in request output - #235

Merged
kenjis merged 4 commits into
masterfrom
add-detect-errors-in-request
Mar 21, 2018
Merged

Add function to detect errors in request output#235
kenjis merged 4 commits into
masterfrom
add-detect-errors-in-request

Conversation

@kenjis

@kenjis kenjis commented Mar 18, 2018

Copy link
Copy Markdown
Owner

If there is a warning in a request output, you can't notice it when you use $this->request().
This PR enables ci-phpunit-test detects such a warning or notice, and throws an exception.

By default, the error checking is enabled. This is BC break.

If you want to disable the checking, you must add $strictRequestErrorCheck = false in your test class like this: https://github.com/kenjis/ci-app-for-ci-phpunit-test/blob/master/application/tests/controllers/api/Example_test.php#L13

Not to call header() function
@coveralls

coveralls commented Mar 18, 2018

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-4.3%) to 72.123% when pulling 67b06f7 on add-detect-errors-in-request into 64aab5d on master.

@kenjis
kenjis force-pushed the add-detect-errors-in-request branch from c483986 to 67b06f7 Compare March 19, 2018 13:15
@kenjis
kenjis merged commit 1b53bc7 into master Mar 21, 2018
@kenjis
kenjis deleted the add-detect-errors-in-request branch March 21, 2018 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants