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
62233759
Commit
62233759
authored
May 04, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #94 from rinatio/fix-var-dump-for-objects
Fixed VarDumper::dump for objects
parents
a948e738
1a317ebe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
VarDumper.php
framework/helpers/base/VarDumper.php
+1
-1
VarDumperTest.php
tests/unit/framework/helpers/VarDumperTest.php
+13
-0
No files found.
framework/helpers/base/VarDumper.php
View file @
62233759
...
@@ -116,7 +116,7 @@ class VarDumper
...
@@ -116,7 +116,7 @@ class VarDumper
}
elseif
(
self
::
$_depth
<=
$level
)
{
}
elseif
(
self
::
$_depth
<=
$level
)
{
self
::
$_output
.=
get_class
(
$var
)
.
'(...)'
;
self
::
$_output
.=
get_class
(
$var
)
.
'(...)'
;
}
else
{
}
else
{
$id
=
self
::
$_objects
[]
=
$var
;
$id
=
array_push
(
self
::
$_objects
,
$var
)
;
$className
=
get_class
(
$var
);
$className
=
get_class
(
$var
);
$members
=
(
array
)
$var
;
$members
=
(
array
)
$var
;
$spaces
=
str_repeat
(
' '
,
$level
*
4
);
$spaces
=
str_repeat
(
' '
,
$level
*
4
);
...
...
tests/unit/framework/helpers/VarDumperTest.php
0 → 100644
View file @
62233759
<?php
namespace
yiiunit\framework\helpers
;
use
\yii\helpers\VarDumper
;
class
VarDumperTest
extends
\yii\test\TestCase
{
public
function
testDumpObject
()
{
$obj
=
new
\StdClass
();
VarDumper
::
dump
(
$obj
);
}
}
\ No newline at end of file
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