Skip to content

Commit f882344

Browse files
committed
Helper output markdown improved
1 parent cfd245d commit f882344

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/quickdump.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22

33
require_once(dirname(__FILE__).'/bootstrap.php');
44

5-
$oParser = new Sabberworm\CSS\Parser(file_get_contents('php://stdin'));
5+
$sSource = file_get_contents('php://stdin');
6+
$oParser = new Sabberworm\CSS\Parser($sSource);
67

78
$oDoc = $oParser->parse();
9+
echo "\n".'#### Input'."\n\n```css\n";
10+
print $sSource;
811

9-
echo '#### Structure (`var_dump()`)'."\n";
12+
echo "\n```\n\n".'#### Structure (`var_dump()`)'."\n\n```php\n";
1013
var_dump($oDoc);
1114

12-
echo '#### Output (`render()`)'."\n";
15+
echo "\n```\n\n".'#### Output (`render()`)'."\n\n```css\n";
1316
print $oDoc->render();
14-
echo "\n";
17+
18+
echo "\n```\n";
1519

0 commit comments

Comments
 (0)