OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7e43e5
)
shell: use var_dump(), to better match Boris output
author
scribu
<mail@scribu.net>
Wed, 8 May 2013 12:57:13 +0000
(15:57 +0300)
committer
scribu
<mail@scribu.net>
Wed, 8 May 2013 12:59:39 +0000
(15:59 +0300)
features/shell.feature
patch
|
blob
|
history
php/WP_CLI/REPL.php
patch
|
blob
|
history
diff --git
a/features/shell.feature
b/features/shell.feature
index
8cb9f59
..
fd77496
100644
(file)
--- a/
features/shell.feature
+++ b/
features/shell.feature
@@
-24,7
+24,7
@@
Feature: WordPress REPL
Then it should run without errors
And STDOUT should contain:
"""
- false
+ bool(false)
"""
Scenario: History builtin
@@
-40,7
+40,7
@@
Feature: WordPress REPL
Then it should run without errors
And STDOUT should be:
"""
- true
+ bool(true)
defined('WP_CLI');
function foo() {};
"""
@@
-79,6
+79,6
@@
Feature: WordPress REPL
Then it should run without errors
And STDOUT should be:
"""
- true
+ bool(true)
"""
diff --git
a/php/WP_CLI/REPL.php
b/php/WP_CLI/REPL.php
index
830404d
..
73232b7
100644
(file)
--- a/
php/WP_CLI/REPL.php
+++ b/
php/WP_CLI/REPL.php
@@
-35,7
+35,7
@@
class REPL {
if ( !self::starts_with( 'return', $line ) )
$line = 'return ' . $line;
-
\WP_CLI::print_value( var_export( eval( $line ), fals
e ) );
+
var_dump( eval( $lin
e ) );
}
}
}