OSDN Git Service

shell: use var_dump(), to better match Boris output
authorscribu <mail@scribu.net>
Wed, 8 May 2013 12:57:13 +0000 (15:57 +0300)
committerscribu <mail@scribu.net>
Wed, 8 May 2013 12:59:39 +0000 (15:59 +0300)
features/shell.feature
php/WP_CLI/REPL.php

index 8cb9f59..fd77496 100644 (file)
@@ -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)
     """
 
index 830404d..73232b7 100644 (file)
@@ -35,7 +35,7 @@ class REPL {
                                if ( !self::starts_with( 'return', $line ) )
                                        $line = 'return ' . $line;
 
-                               \WP_CLI::print_value( var_export( eval( $line ), false ) );
+                               var_dump( eval( $line ) );
                        }
                }
        }