From bbb58b10ad3c28e88549377ecca6f35f947292e5 Mon Sep 17 00:00:00 2001 From: Neill Magill Date: Wed, 21 Oct 2020 08:16:35 +0100 Subject: [PATCH 1/2] MDL-69553 output: Unit tests for loading multiline string defines --- .../mustache_template_source_loader_test.php | 83 ++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/lib/tests/mustache_template_source_loader_test.php b/lib/tests/mustache_template_source_loader_test.php index 1ccac41b1e5..a0e30db7b16 100644 --- a/lib/tests/mustache_template_source_loader_test.php +++ b/lib/tests/mustache_template_source_loader_test.php @@ -357,12 +357,43 @@ TBC; $bar = '{{! a comment }}{{> core/baz }}'; $baz = '{{! a comment }}{{#str}} hide, core {{/str}}'; $bop = '{{! a comment }}hello'; + $multiline1 = <<