From 7ae08e3c35760fd7c5cb00d9a8a27488090f952d Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Wed, 23 Oct 2013 15:22:12 +0200 Subject: Added some tests. Many of these break. Mostly because the way whitespace/newlines are added (or not added). This is terribly broken ATM... (It was okay with the old parser, I'll try to replicate that behaviour) --- tests/test_mktag/.gitignore | 3 +++ tests/test_mktag/code.php | 5 +++++ tests/test_mktag/test.tpl | 12 ++++++++++++ tests/test_mktag/want | 1 + 4 files changed, 21 insertions(+) create mode 100644 tests/test_mktag/.gitignore create mode 100644 tests/test_mktag/code.php create mode 100644 tests/test_mktag/test.tpl create mode 100644 tests/test_mktag/want (limited to 'tests/test_mktag') diff --git a/tests/test_mktag/.gitignore b/tests/test_mktag/.gitignore new file mode 100644 index 0000000..de2a41b --- /dev/null +++ b/tests/test_mktag/.gitignore @@ -0,0 +1,3 @@ +have +*.ast +*.transc.php diff --git a/tests/test_mktag/code.php b/tests/test_mktag/code.php new file mode 100644 index 0000000..de8c553 --- /dev/null +++ b/tests/test_mktag/code.php @@ -0,0 +1,5 @@ +2 * + + $_tag_parameters[b]Ugly hack, since STE does no scoping... + + + $i + $i + $b + + + + \ No newline at end of file diff --git a/tests/test_mktag/want b/tests/test_mktag/want new file mode 100644 index 0000000..be0b204 --- /dev/null +++ b/tests/test_mktag/want @@ -0,0 +1 @@ +0-4-8-12-16-20 \ No newline at end of file -- cgit v1.2.3-70-g09d2