From 37c1acbdeda6af9ade16d4063188587ff924cd8d Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Mon, 11 Oct 2010 11:24:26 +0200 Subject: Correctly handle non-default sepchars in page templates (FS#2057) --- _test/cases/inc/common_pagetemplate.test.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 _test/cases/inc/common_pagetemplate.test.php (limited to '_test') diff --git a/_test/cases/inc/common_pagetemplate.test.php b/_test/cases/inc/common_pagetemplate.test.php new file mode 100644 index 000000000..ecba0f966 --- /dev/null +++ b/_test/cases/inc/common_pagetemplate.test.php @@ -0,0 +1,19 @@ + 'page-id-long', + 'tpl' => '"@PAGE@" "@!PAGE@" "@!!PAGE@" "@!PAGE!@"', + ); + $old = error_reporting(E_ALL & ~E_NOTICE); + $this->assertEqual(parsePageTemplate($data), '"page id long" "Page id long" "Page Id Long" "PAGE ID LONG"'); + error_reporting($old); + } +} +//Setup VIM: ex: et ts=4 enc=utf-8 : -- cgit v1.2.3