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_blocks/.gitignore | 3 +++ tests/test_blocks/code.php | 5 +++++ tests/test_blocks/master.tpl | 3 +++ tests/test_blocks/test.tpl | 2 ++ tests/test_blocks/want | 3 +++ 5 files changed, 16 insertions(+) create mode 100644 tests/test_blocks/.gitignore create mode 100644 tests/test_blocks/code.php create mode 100644 tests/test_blocks/master.tpl create mode 100644 tests/test_blocks/test.tpl create mode 100644 tests/test_blocks/want (limited to 'tests/test_blocks') diff --git a/tests/test_blocks/.gitignore b/tests/test_blocks/.gitignore new file mode 100644 index 0000000..de2a41b --- /dev/null +++ b/tests/test_blocks/.gitignore @@ -0,0 +1,3 @@ +have +*.ast +*.transc.php diff --git a/tests/test_blocks/code.php b/tests/test_blocks/code.php new file mode 100644 index 0000000..de8c553 --- /dev/null +++ b/tests/test_blocks/code.php @@ -0,0 +1,5 @@ +Bar +Baz \ No newline at end of file diff --git a/tests/test_blocks/test.tpl b/tests/test_blocks/test.tpl new file mode 100644 index 0000000..44c6891 --- /dev/null +++ b/tests/test_blocks/test.tpl @@ -0,0 +1,2 @@ + +Replaced \ No newline at end of file diff --git a/tests/test_blocks/want b/tests/test_blocks/want new file mode 100644 index 0000000..b9d1515 --- /dev/null +++ b/tests/test_blocks/want @@ -0,0 +1,3 @@ +Foo +Replaced +Baz \ No newline at end of file -- cgit v1.2.3-54-g00ecf