Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/debug/Resources/ext/tests/002_1.phpt @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 7a779792577d |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 --TEST-- | |
2 Test symfony_debug_backtrace in case of non fatal error | |
3 --SKIPIF-- | |
4 <?php if (!extension_loaded('symfony_debug')) print 'skip'; ?> | |
5 --FILE-- | |
6 <?php | |
7 | |
8 function bar() | |
9 { | |
10 bt(); | |
11 } | |
12 | |
13 function bt() | |
14 { | |
15 print_r(symfony_debug_backtrace()); | |
16 } | |
17 | |
18 bar(); | |
19 | |
20 ?> | |
21 --EXPECTF-- | |
22 Array | |
23 ( | |
24 [0] => Array | |
25 ( | |
26 [file] => %s | |
27 [line] => %d | |
28 [function] => bt | |
29 [args] => Array | |
30 ( | |
31 ) | |
32 | |
33 ) | |
34 | |
35 [1] => Array | |
36 ( | |
37 [file] => %s | |
38 [line] => %d | |
39 [function] => bar | |
40 [args] => Array | |
41 ( | |
42 ) | |
43 | |
44 ) | |
45 | |
46 ) |