Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
214f66a8
Commit
214f66a8
authored
Feb 01, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip exiting in test env.
see
https://github.com/yiisoft/yii2/commit/0cfd41a21a8d89cc577590a253893542e60d43ce#commitcomment-5238567
issue #2233
parent
7e807206
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Application.php
framework/base/Application.php
+1
-1
ErrorHandler.php
framework/base/ErrorHandler.php
+3
-0
No files found.
framework/base/Application.php
View file @
214f66a8
...
...
@@ -515,7 +515,7 @@ abstract class Application extends Module
$handler
->
handle
(
$exception
);
}
else
{
echo
$this
->
renderException
(
$exception
);
if
(
PHP_SAPI
===
'cli'
)
{
if
(
PHP_SAPI
===
'cli'
&&
!
YII_ENV_TEST
)
{
exit
(
1
);
}
}
...
...
framework/base/ErrorHandler.php
View file @
214f66a8
...
...
@@ -87,8 +87,11 @@ class ErrorHandler extends Component
{
if
(
Yii
::
$app
instanceof
\yii\console\Application
||
YII_ENV_TEST
)
{
echo
Yii
::
$app
->
renderException
(
$exception
);
if
(
!
YII_ENV_TEST
)
{
exit
(
1
);
}
return
;
}
$useErrorView
=
!
YII_DEBUG
||
$exception
instanceof
UserException
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment