Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a new test case.

  • Loading branch information...
commit ac8418a8401a2359c8e192c28a6fb1d5a29e8ef4 1 parent 18a5564
Derick Rethans authored September 29, 2012

Showing 1 changed file with 27 additions and 0 deletions. Show diff stats Hide diff stats

  1. 27  tests/print_function_stack.phpt
27  tests/print_function_stack.phpt
... ...
@@ -0,0 +1,27 @@
  1
+--TEST--
  2
+Test for xdebug_print_function_stack().
  3
+--INI--
  4
+xdebug.cli_color=0
  5
+xdebug.collect_params=3
  6
+--FILE--
  7
+<?php
  8
+function foo()
  9
+{
  10
+	xdebug_print_function_stack();
  11
+}
  12
+
  13
+function bar()
  14
+{
  15
+	foo(1, 3, 'foo', 'bar' );
  16
+}
  17
+
  18
+bar();
  19
+?>
  20
+--EXPECTF--
  21
+Xdebug: user triggered in %sprint_function_stack.php on line 4
  22
+
  23
+Call Stack:
  24
+%w%f %w%d   1. {main}() %sprint_function_stack.php:0
  25
+%w%f %w%d   2. bar() %sprint_function_stack.php:12
  26
+%w%f %w%d   3. foo(1, 3, 'foo', 'bar') %sprint_function_stack.php:9
  27
+%w%f %w%d   4. xdebug_print_function_stack() %sprint_function_stack.php:4

0 notes on commit ac8418a

Please sign in to comment.
Something went wrong with that request. Please try again.