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
b455f2c9
Commit
b455f2c9
authored
Jun 07, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test break.
parent
ba0da059
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
HttpException.php
framework/yii/base/HttpException.php
+2
-4
ResponseTest.php
tests/unit/framework/web/ResponseTest.php
+1
-0
No files found.
framework/yii/base/HttpException.php
View file @
b455f2c9
...
...
@@ -7,8 +7,6 @@
namespace
yii\base
;
use
yii\web\Response
;
/**
* HttpException represents an exception caused by an improper request of the end-user.
...
...
@@ -45,8 +43,8 @@ class HttpException extends UserException
*/
public
function
getName
()
{
if
(
isset
(
Response
::
$statusTexts
[
$this
->
statusCode
]))
{
return
Response
::
$statusTexts
[
$this
->
statusCode
];
if
(
isset
(
\yii\web\
Response
::
$statusTexts
[
$this
->
statusCode
]))
{
return
\yii\web\
Response
::
$statusTexts
[
$this
->
statusCode
];
}
else
{
return
'Error'
;
}
...
...
tests/unit/framework/web/ResponseTest.php
View file @
b455f2c9
...
...
@@ -32,6 +32,7 @@ class ResponseTest extends \yiiunit\TestCase
protected
function
setUp
()
{
parent
::
setUp
();
$this
->
mockApplication
();
$this
->
reset
();
}
...
...
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