Skip to content

Commit 6b8f33c

Browse files
committed
added quick dump script
1 parent 4ba8b0e commit 6b8f33c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/quickdump.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
require_once(dirname(__FILE__).'/../CSSParser.php');
4+
5+
$oParser = new CSSParser(file_get_contents('php://stdin'));
6+
7+
$oDoc = $oParser->parse();
8+
9+
echo '#### Structure (`var_dump()`)'."\n";
10+
var_dump($oDoc);
11+
12+
echo '#### Output (`__toString()`)'."\n";
13+
print $oDoc->__toString();
14+
echo "\n";
15+

0 commit comments

Comments
 (0)