File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ Test dd() with named args show label
3+ --FILE--
4+ <?php
5+ putenv ('NO_COLOR=1 ' );
6+
7+ $ vendor = __DIR__ ;
8+ while (!file_exists ($ vendor .'/vendor ' )) {
9+ $ vendor = \dirname ($ vendor );
10+ }
11+ require $ vendor .'/vendor/autoload.php ' ;
12+
13+ dd (label2: "dd() with label " );
14+
15+ --EXPECT --
16+ label2 "dd() with label "
Original file line number Diff line number Diff line change 1+ --TEST--
2+ Test dd() with named args show label
3+ --FILE--
4+ <?php
5+ putenv ('NO_COLOR=1 ' );
6+
7+ $ vendor = __DIR__ ;
8+ while (!file_exists ($ vendor .'/vendor ' )) {
9+ $ vendor = \dirname ($ vendor );
10+ }
11+ require $ vendor .'/vendor/autoload.php ' ;
12+
13+ dump ("first dump " , label1: "dump() with label " );
14+
15+ --EXPECT --
16+ 1 "first dump "
17+ label1 "dump() with label"
Original file line number Diff line number Diff line change 1+ --TEST--
2+ Test dd() without args displays debug hint
3+ --FILE--
4+ <?php
5+ putenv ('NO_COLOR=1 ' );
6+
7+ $ vendor = __DIR__ ;
8+ while (!file_exists ($ vendor .'/vendor ' )) {
9+ $ vendor = \dirname ($ vendor );
10+ }
11+ require $ vendor .'/vendor/autoload.php ' ;
12+
13+ dump ();
14+
15+ --EXPECT --
16+ 🐛
You can’t perform that action at this time.
0 commit comments