From 821d199e89d218ca6cd0bc1e3eb2b6feaeb045a0 Mon Sep 17 00:00:00 2001 From: matthes Date: Fri, 27 Jul 2018 11:18:43 +0200 Subject: [PATCH] append output --- test/unit/tpls/15_print/out.txt | 20 ++++++++++---------- test/value-redirection.phpt | 20 ++++++++------------ 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/test/unit/tpls/15_print/out.txt b/test/unit/tpls/15_print/out.txt index 3dee823..f5c255b 100644 --- a/test/unit/tpls/15_print/out.txt +++ b/test/unit/tpls/15_print/out.txt @@ -1,14 +1,14 @@ 1: - 2: - 3: - 4: +2: +3: +4: - AAA - 5: + AAA +5: - BBB - BBB - 6: + BBB + BBB +6: - CCC - 7: \ No newline at end of file + CCC +7: \ No newline at end of file diff --git a/test/value-redirection.phpt b/test/value-redirection.phpt index 90a6c4c..aaad8a9 100644 --- a/test/value-redirection.phpt +++ b/test/value-redirection.phpt @@ -36,23 +36,19 @@ $tpl = <<addSection("section", function ($content, $params, $command, $context, $cmdParam) use (&$sec) { - $sec[$params["name"]] = $content; - if ($command !== "section") - throw new InvalidArgumentException("Command missing"); - return "*" . trim ($content) . "*"; -}); $textResult = $template->apply([]); -Assert::equal($compare, $textResult); -Assert::equal("AAA", trim($sec["A"])); -Assert::equal("BBB", trim($sec["B"])); \ No newline at end of file +Assert::equal($compare, $textResult); \ No newline at end of file