b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin - Copy/testpayment/src/xdebug/tests/develop/
File Upload :
Current File : E:/www/b-group.old/spfin - Copy/testpayment/src/xdebug/tests/develop/vardump-overload-cli-002.phpt

--TEST--
Test for overloaded var_dump() on the CLI with file
--INI--
xdebug.mode=develop
html_errors=0
xdebug.cli_color=0
xdebug.var_display_max_data=32
xdebug.var_display_max_depth=2
xdebug.var_display_max_children=8
xdebug.filename_format=
--FILE--
<?php
$array = array(
	"Hello, this is a very long string with some other useful info",
	array(
		"depth2" => array(
			"depth3" => array(
				"depth4" => false,
			)
		)
	),
	range(0, 16)
);
var_dump($array);

ini_set('xdebug.cli_color', 2);
var_dump($array);
--EXPECTF--
%svardump-overload-cli-002.php:%d:
array(3) {
  [0] =>
  string(61) "Hello, this is a very long strin"...
  [1] =>
  array(1) {
    'depth2' =>
    array(1) {
      ...
    }
  }
  [2] =>
  array(17) {
    [0] =>
    int(0)
    [1] =>
    int(1)
    [2] =>
    int(2)
    [3] =>
    int(3)
    [4] =>
    int(4)
    [5] =>
    int(5)
    [6] =>
    int(6)
    [7] =>
    int(7)

    (more elements)...
  }
}
%svardump-overload-cli-002.php:%d:
array(3) {
  [0] =>
  string(61) "Hello, this is a very long strin"...
  [1] =>
  array(1) {
    'depth2' =>
    array(1) {
      ...
    }
  }
  [2] =>
  array(17) {
    [0] =>
    int(0)
    [1] =>
    int(1)
    [2] =>
    int(2)
    [3] =>
    int(3)
    [4] =>
    int(4)
    [5] =>
    int(5)
    [6] =>
    int(6)
    [7] =>
    int(7)

    (more elements)...
  }
}

Copyright © 2019 by b0y-101