Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a new test case.

  • Loading branch information...
commit ac8418a8401a2359c8e192c28a6fb1d5a29e8ef4 1 parent 18a5564
@derickr authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 tests/print_function_stack.phpt
View
27 tests/print_function_stack.phpt
@@ -0,0 +1,27 @@
+--TEST--
+Test for xdebug_print_function_stack().
+--INI--
+xdebug.cli_color=0
+xdebug.collect_params=3
+--FILE--
+<?php
+function foo()
+{
+ xdebug_print_function_stack();
+}
+
+function bar()
+{
+ foo(1, 3, 'foo', 'bar' );
+}
+
+bar();
+?>
+--EXPECTF--
+Xdebug: user triggered in %sprint_function_stack.php on line 4
+
+Call Stack:
+%w%f %w%d 1. {main}() %sprint_function_stack.php:0
+%w%f %w%d 2. bar() %sprint_function_stack.php:12
+%w%f %w%d 3. foo(1, 3, 'foo', 'bar') %sprint_function_stack.php:9
+%w%f %w%d 4. xdebug_print_function_stack() %sprint_function_stack.php:4
Please sign in to comment.
Something went wrong with that request. Please try again.