diff options
Diffstat (limited to 'tests/regression.php')
-rw-r--r-- | tests/regression.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/regression.php b/tests/regression.php deleted file mode 100644 index 5ee7d26..0000000 --- a/tests/regression.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php -require '../lib/SqlFormatter.php'; - -//the sample query file is filled with install scripts for PrestaShop -//and some sample catalog data from Magento -$contents = file_get_contents('sql.sql'); - -//queries are separated by 2 new lines -$queries = explode("\n\n",$contents); - -$output = "<ol>\n"; - -foreach ($queries as $query) { - //do formatting and highlighting - $output .= "<li>".SqlFormatter::format($query)."</li>\n\n"; -} - -$output .= "</ol>"; - -$expected = file_get_contents('expected.html'); - -if($expected === $output) echo "Got expected output. No changes found."; -else echo $output; |