From dd9878e26841adf2a1709ef56eee13280fdbc164 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 28 Nov 2022 00:28:35 +0100 Subject: [PATCH] tests: renamed some files --- tests/common/Compiler.recursiveMacro.phpt | 2 +- tests/common/Compiler.unquoted.phpt | 2 +- tests/common/PhpHelpers.reformatCode().phpt | 4 ++-- tests/common/contentType.ical.phpt | 2 +- tests/common/contentType.xml.phpt | 2 +- ...cro.phtml => Compiler.recursive.macro.php} | 0 ...ttrs.phtml => Compiler.unquoted.attrs.php} | 0 ...().phtml => PhpHelpers.reformatCode().php} | 0 ...ntType.ical.phtml => contentType.ical.php} | 0 ...tentType.xml.phtml => contentType.xml.php} | 0 ...().phtml => PhpHelpers.reformatCode().php} | 0 .../expected/{general.phtml => general.php} | 0 tests/filters/general.phpt | 2 +- tests/sandbox/code.phpt | 22 +++++++++---------- ...ode.callbacks.phtml => code.callbacks.php} | 0 .../{code.consts.phtml => code.consts.php} | 0 ...ode.functions.phtml => code.functions.php} | 0 ....methods.phtml => code.object.methods.php} | 0 ...80.phtml => code.optional-chaining.80.php} | 0 ...ining.phtml => code.optional-chaining.php} | 0 .../{code.props.phtml => code.props.php} | 0 ...e.read-write.phtml => code.read-write.php} | 0 ....methods.phtml => code.static.methods.php} | 0 ...atic.props.phtml => code.static.props.php} | 0 .../{code.vars.phtml => code.vars.php} | 0 tests/tags/block.breaking.phpt | 2 +- tests/tags/block.dynamic.phpt | 2 +- tests/tags/block.local.dynamic.phpt | 2 +- tests/tags/block.vars.phpt | 2 +- tests/tags/define.args.phpt | 12 +++++----- tests/tags/define.phpt | 2 +- tests/tags/embed.block.phpt | 2 +- tests/tags/embed.file.phpt | 2 +- ...lock.breaking.phtml => block.breaking.php} | 0 ...{block.dynamic.phtml => block.dynamic.php} | 0 ....dynamic.phtml => block.local.dynamic.php} | 0 .../{block.vars.phtml => block.vars.php} | 0 .../{define.args1.phtml => define.args1.php} | 0 .../{define.args2.phtml => define.args2.php} | 0 .../{define.args3.phtml => define.args3.php} | 0 .../{define.args4.phtml => define.args4.php} | 0 .../{define.args5.phtml => define.args5.php} | 0 .../expected/{define.phtml => define.php} | 0 ...e.typehints.phtml => define.typehints.php} | 0 .../{embed.block.phtml => embed.block.php} | 0 .../{embed.file.phtml => embed.file.php} | 0 .../{extends.1.phtml => extends.1.php} | 0 .../{extends.4.phtml => extends.4.php} | 0 .../{extendsCheck.phtml => extendsCheck.php} | 0 ...irst-sep-last.phtml => first-sep-last.php} | 0 tests/tags/expected/{for.phtml => for.php} | 0 ...g.attr.phtml => foreach.breaking.attr.php} | 0 ...ch.breaking.phtml => foreach.breaking.php} | 0 .../{foreach.else.phtml => foreach.else.php} | 0 .../expected/{foreach2.phtml => foreach2.php} | 0 .../{general.html.phtml => general.html.php} | 0 ...ributes.phtml => general.n-attributes.php} | 0 ...{general.xhtml.phtml => general.xhtml.php} | 0 tests/tags/expected/{if.phtml => if.php} | 0 .../{ifchanged.phtml => ifchanged.php} | 0 .../expected/{import.phtml => import.php} | 0 ...lock.from.phtml => include.block.from.php} | 0 .../{include.inc1.phtml => include.inc1.php} | 0 .../{include.inc2.phtml => include.inc2.php} | 0 .../{include.inc3.phtml => include.inc3.php} | 0 .../expected/{include.phtml => include.php} | 0 ....inc.phtml => include.with-blocks.inc.php} | 0 ...h-blocks.phtml => include.with-blocks.php} | 0 ...deblock.inc.phtml => includeblock.inc.php} | 0 .../{includeblock.phtml => includeblock.php} | 0 ....parent.phtml => inheritance.1.parent.php} | 0 ...{inheritance.1.phtml => inheritance.1.php} | 0 ...{inheritance.2.phtml => inheritance.2.php} | 0 .../{iterateWhile.phtml => iterateWhile.php} | 0 .../expected/{n-class.phtml => n-class.php} | 0 .../{print.xss.phtml => print.xss.php} | 0 ...{snippet.block.phtml => snippet.block.php} | 0 ...amic.alt.phtml => snippet.dynamic.alt.php} | 0 ...ppet.dynamic.phtml => snippet.dynamic.php} | 0 ...et.dynamic2.phtml => snippet.dynamic2.php} | 0 .../{snippet.n.phtml => snippet.n.php} | 0 .../expected/{snippet.phtml => snippet.php} | 0 .../expected/{switch.phtml => switch.php} | 0 .../expected/{syntax.phtml => syntax.php} | 0 tests/tags/expected/{try.phtml => try.php} | 0 .../tags/expected/{while.phtml => while.php} | 0 tests/tags/extends.1.phpt | 2 +- tests/tags/extends.4.phpt | 2 +- tests/tags/extendsCheck.phpt | 2 +- tests/tags/first-sep-last.phpt | 2 +- tests/tags/for.phpt | 2 +- tests/tags/foreach.breaking.phpt | 4 ++-- tests/tags/foreach.else.phpt | 2 +- tests/tags/foreach2.phpt | 2 +- tests/tags/general.html.phpt | 2 +- tests/tags/general.n-attributes.phpt | 2 +- tests/tags/general.xhtml.phpt | 2 +- tests/tags/if.phpt | 2 +- tests/tags/ifchanged.phpt | 2 +- tests/tags/import.phpt | 2 +- tests/tags/include.block.from.phpt | 2 +- tests/tags/include.phpt | 8 +++---- tests/tags/include.with-blocks.phpt | 4 ++-- tests/tags/includeblock.phpt | 4 ++-- tests/tags/inheritance.1.phpt | 4 ++-- tests/tags/inheritance.2.phpt | 2 +- tests/tags/iterateWhile.phpt | 2 +- tests/tags/n-class.phpt | 2 +- tests/tags/print.xss.phpt | 2 +- tests/tags/snippet.block.phpt | 2 +- tests/tags/snippet.dynamic.alt.phpt | 2 +- tests/tags/snippet.dynamic.phpt | 4 ++-- tests/tags/snippet.n.phpt | 2 +- tests/tags/snippet.phpt | 2 +- tests/tags/switch.phpt | 2 +- tests/tags/syntax.phpt | 2 +- tests/tags/try.phpt | 2 +- tests/tags/while.phpt | 2 +- 118 files changed, 71 insertions(+), 71 deletions(-) rename tests/common/expected/{Compiler.recursive.macro.phtml => Compiler.recursive.macro.php} (100%) rename tests/common/expected/{Compiler.unquoted.attrs.phtml => Compiler.unquoted.attrs.php} (100%) rename tests/common/expected/{PhpHelpers.reformatCode().phtml => PhpHelpers.reformatCode().php} (100%) rename tests/common/expected/{contentType.ical.phtml => contentType.ical.php} (100%) rename tests/common/expected/{contentType.xml.phtml => contentType.xml.php} (100%) rename tests/common/templates/{PhpHelpers.reformatCode().phtml => PhpHelpers.reformatCode().php} (100%) rename tests/filters/expected/{general.phtml => general.php} (100%) rename tests/sandbox/expected/{code.callbacks.phtml => code.callbacks.php} (100%) rename tests/sandbox/expected/{code.consts.phtml => code.consts.php} (100%) rename tests/sandbox/expected/{code.functions.phtml => code.functions.php} (100%) rename tests/sandbox/expected/{code.object.methods.phtml => code.object.methods.php} (100%) rename tests/sandbox/expected/{code.optional-chaining.80.phtml => code.optional-chaining.80.php} (100%) rename tests/sandbox/expected/{code.optional-chaining.phtml => code.optional-chaining.php} (100%) rename tests/sandbox/expected/{code.props.phtml => code.props.php} (100%) rename tests/sandbox/expected/{code.read-write.phtml => code.read-write.php} (100%) rename tests/sandbox/expected/{code.static.methods.phtml => code.static.methods.php} (100%) rename tests/sandbox/expected/{code.static.props.phtml => code.static.props.php} (100%) rename tests/sandbox/expected/{code.vars.phtml => code.vars.php} (100%) rename tests/tags/expected/{block.breaking.phtml => block.breaking.php} (100%) rename tests/tags/expected/{block.dynamic.phtml => block.dynamic.php} (100%) rename tests/tags/expected/{block.local.dynamic.phtml => block.local.dynamic.php} (100%) rename tests/tags/expected/{block.vars.phtml => block.vars.php} (100%) rename tests/tags/expected/{define.args1.phtml => define.args1.php} (100%) rename tests/tags/expected/{define.args2.phtml => define.args2.php} (100%) rename tests/tags/expected/{define.args3.phtml => define.args3.php} (100%) rename tests/tags/expected/{define.args4.phtml => define.args4.php} (100%) rename tests/tags/expected/{define.args5.phtml => define.args5.php} (100%) rename tests/tags/expected/{define.phtml => define.php} (100%) rename tests/tags/expected/{define.typehints.phtml => define.typehints.php} (100%) rename tests/tags/expected/{embed.block.phtml => embed.block.php} (100%) rename tests/tags/expected/{embed.file.phtml => embed.file.php} (100%) rename tests/tags/expected/{extends.1.phtml => extends.1.php} (100%) rename tests/tags/expected/{extends.4.phtml => extends.4.php} (100%) rename tests/tags/expected/{extendsCheck.phtml => extendsCheck.php} (100%) rename tests/tags/expected/{first-sep-last.phtml => first-sep-last.php} (100%) rename tests/tags/expected/{for.phtml => for.php} (100%) rename tests/tags/expected/{foreach.breaking.attr.phtml => foreach.breaking.attr.php} (100%) rename tests/tags/expected/{foreach.breaking.phtml => foreach.breaking.php} (100%) rename tests/tags/expected/{foreach.else.phtml => foreach.else.php} (100%) rename tests/tags/expected/{foreach2.phtml => foreach2.php} (100%) rename tests/tags/expected/{general.html.phtml => general.html.php} (100%) rename tests/tags/expected/{general.n-attributes.phtml => general.n-attributes.php} (100%) rename tests/tags/expected/{general.xhtml.phtml => general.xhtml.php} (100%) rename tests/tags/expected/{if.phtml => if.php} (100%) rename tests/tags/expected/{ifchanged.phtml => ifchanged.php} (100%) rename tests/tags/expected/{import.phtml => import.php} (100%) rename tests/tags/expected/{include.block.from.phtml => include.block.from.php} (100%) rename tests/tags/expected/{include.inc1.phtml => include.inc1.php} (100%) rename tests/tags/expected/{include.inc2.phtml => include.inc2.php} (100%) rename tests/tags/expected/{include.inc3.phtml => include.inc3.php} (100%) rename tests/tags/expected/{include.phtml => include.php} (100%) rename tests/tags/expected/{include.with-blocks.inc.phtml => include.with-blocks.inc.php} (100%) rename tests/tags/expected/{include.with-blocks.phtml => include.with-blocks.php} (100%) rename tests/tags/expected/{includeblock.inc.phtml => includeblock.inc.php} (100%) rename tests/tags/expected/{includeblock.phtml => includeblock.php} (100%) rename tests/tags/expected/{inheritance.1.parent.phtml => inheritance.1.parent.php} (100%) rename tests/tags/expected/{inheritance.1.phtml => inheritance.1.php} (100%) rename tests/tags/expected/{inheritance.2.phtml => inheritance.2.php} (100%) rename tests/tags/expected/{iterateWhile.phtml => iterateWhile.php} (100%) rename tests/tags/expected/{n-class.phtml => n-class.php} (100%) rename tests/tags/expected/{print.xss.phtml => print.xss.php} (100%) rename tests/tags/expected/{snippet.block.phtml => snippet.block.php} (100%) rename tests/tags/expected/{snippet.dynamic.alt.phtml => snippet.dynamic.alt.php} (100%) rename tests/tags/expected/{snippet.dynamic.phtml => snippet.dynamic.php} (100%) rename tests/tags/expected/{snippet.dynamic2.phtml => snippet.dynamic2.php} (100%) rename tests/tags/expected/{snippet.n.phtml => snippet.n.php} (100%) rename tests/tags/expected/{snippet.phtml => snippet.php} (100%) rename tests/tags/expected/{switch.phtml => switch.php} (100%) rename tests/tags/expected/{syntax.phtml => syntax.php} (100%) rename tests/tags/expected/{try.phtml => try.php} (100%) rename tests/tags/expected/{while.phtml => while.php} (100%) diff --git a/tests/common/Compiler.recursiveMacro.phpt b/tests/common/Compiler.recursiveMacro.phpt index be88d5a177..8e6fe5cf4e 100644 --- a/tests/common/Compiler.recursiveMacro.phpt +++ b/tests/common/Compiler.recursiveMacro.phpt @@ -29,6 +29,6 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/Compiler.recursive.macro.phtml', + __DIR__ . '/expected/Compiler.recursive.macro.php', $latte->compile($template) ); diff --git a/tests/common/Compiler.unquoted.phpt b/tests/common/Compiler.unquoted.phpt index 4f9e503558..200c336085 100644 --- a/tests/common/Compiler.unquoted.phpt +++ b/tests/common/Compiler.unquoted.phpt @@ -31,7 +31,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/Compiler.unquoted.attrs.phtml', + __DIR__ . '/expected/Compiler.unquoted.attrs.php', $latte->compile($template) ); Assert::matchFile( diff --git a/tests/common/PhpHelpers.reformatCode().phpt b/tests/common/PhpHelpers.reformatCode().phpt index ce4a9c53e6..d9ea97b97e 100644 --- a/tests/common/PhpHelpers.reformatCode().phpt +++ b/tests/common/PhpHelpers.reformatCode().phpt @@ -13,8 +13,8 @@ use Tester\Assert; require __DIR__ . '/../bootstrap.php'; -$input = file_get_contents(__DIR__ . '/templates/PhpHelpers.reformatCode().phtml'); -$expected = file_get_contents(__DIR__ . '/expected/PhpHelpers.reformatCode().phtml'); +$input = file_get_contents(__DIR__ . '/templates/PhpHelpers.reformatCode().php'); +$expected = file_get_contents(__DIR__ . '/expected/PhpHelpers.reformatCode().php'); Assert::match($expected, PhpHelpers::reformatCode($input)); Assert::match('', PhpHelpers::reformatCode('')); diff --git a/tests/common/contentType.ical.phpt b/tests/common/contentType.ical.phpt index 6107f59872..24947abe9a 100644 --- a/tests/common/contentType.ical.phpt +++ b/tests/common/contentType.ical.phpt @@ -35,7 +35,7 @@ END:VCALENDAR EOD; Assert::matchFile( - __DIR__ . '/expected/contentType.ical.phtml', + __DIR__ . '/expected/contentType.ical.php', $latte->compile($template) ); Assert::matchFile( diff --git a/tests/common/contentType.xml.phpt b/tests/common/contentType.xml.phpt index ba9f3468f9..5bda5c4c3e 100644 --- a/tests/common/contentType.xml.phpt +++ b/tests/common/contentType.xml.phpt @@ -28,7 +28,7 @@ $params['xss'] = 'some&<>"\'/chars'; $params['mxss'] = '`mxss'; Assert::matchFile( - __DIR__ . '/expected/contentType.xml.phtml', + __DIR__ . '/expected/contentType.xml.php', $latte->compile(__DIR__ . '/templates/contentType.xml.latte') ); Assert::matchFile( diff --git a/tests/common/expected/Compiler.recursive.macro.phtml b/tests/common/expected/Compiler.recursive.macro.php similarity index 100% rename from tests/common/expected/Compiler.recursive.macro.phtml rename to tests/common/expected/Compiler.recursive.macro.php diff --git a/tests/common/expected/Compiler.unquoted.attrs.phtml b/tests/common/expected/Compiler.unquoted.attrs.php similarity index 100% rename from tests/common/expected/Compiler.unquoted.attrs.phtml rename to tests/common/expected/Compiler.unquoted.attrs.php diff --git a/tests/common/expected/PhpHelpers.reformatCode().phtml b/tests/common/expected/PhpHelpers.reformatCode().php similarity index 100% rename from tests/common/expected/PhpHelpers.reformatCode().phtml rename to tests/common/expected/PhpHelpers.reformatCode().php diff --git a/tests/common/expected/contentType.ical.phtml b/tests/common/expected/contentType.ical.php similarity index 100% rename from tests/common/expected/contentType.ical.phtml rename to tests/common/expected/contentType.ical.php diff --git a/tests/common/expected/contentType.xml.phtml b/tests/common/expected/contentType.xml.php similarity index 100% rename from tests/common/expected/contentType.xml.phtml rename to tests/common/expected/contentType.xml.php diff --git a/tests/common/templates/PhpHelpers.reformatCode().phtml b/tests/common/templates/PhpHelpers.reformatCode().php similarity index 100% rename from tests/common/templates/PhpHelpers.reformatCode().phtml rename to tests/common/templates/PhpHelpers.reformatCode().php diff --git a/tests/filters/expected/general.phtml b/tests/filters/expected/general.php similarity index 100% rename from tests/filters/expected/general.phtml rename to tests/filters/expected/general.php diff --git a/tests/filters/general.phpt b/tests/filters/general.phpt index 6b4b5c8237..5ed96e8baa 100644 --- a/tests/filters/general.phpt +++ b/tests/filters/general.phpt @@ -76,7 +76,7 @@ $params['hello'] = 'Hello World'; $params['date'] = strtotime('2008-01-02'); Assert::matchFile( - __DIR__ . '/expected/general.phtml', + __DIR__ . '/expected/general.php', $latte->compile(__DIR__ . '/templates/general.latte') ); Assert::matchFile( diff --git a/tests/sandbox/code.phpt b/tests/sandbox/code.phpt index dc6d03037e..9abd8a2a27 100644 --- a/tests/sandbox/code.phpt +++ b/tests/sandbox/code.phpt @@ -26,7 +26,7 @@ vars EOD; Assert::matchFile( - __DIR__ . '/expected/code.vars.phtml', + __DIR__ . '/expected/code.vars.php', $latte->compile($template) ); @@ -48,7 +48,7 @@ functions EOD; Assert::matchFile( - __DIR__ . '/expected/code.functions.phtml', + __DIR__ . '/expected/code.functions.php', $latte->compile($template) ); @@ -65,7 +65,7 @@ callbacks EOD; Assert::matchFile( - __DIR__ . '/expected/code.callbacks.phtml', + __DIR__ . '/expected/code.callbacks.php', $latte->compile($template) ); @@ -83,7 +83,7 @@ static methods EOD; Assert::matchFile( - __DIR__ . '/expected/code.static.methods.phtml', + __DIR__ . '/expected/code.static.methods.php', $latte->compile($template) ); @@ -100,7 +100,7 @@ static props EOD; Assert::matchFile( - __DIR__ . '/expected/code.static.props.phtml', + __DIR__ . '/expected/code.static.props.php', $latte->compile($template) ); @@ -119,7 +119,7 @@ consts EOD; Assert::matchFile( - __DIR__ . '/expected/code.consts.phtml', + __DIR__ . '/expected/code.consts.php', $latte->compile($template) ); @@ -139,7 +139,7 @@ object methods EOD; Assert::matchFile( - __DIR__ . '/expected/code.object.methods.phtml', + __DIR__ . '/expected/code.object.methods.php', $latte->compile($template) ); @@ -169,7 +169,7 @@ props EOD; Assert::matchFile( - __DIR__ . '/expected/code.props.phtml', + __DIR__ . '/expected/code.props.php', $latte->compile($template) ); @@ -184,7 +184,7 @@ read-write EOD; Assert::matchFile( - __DIR__ . '/expected/code.read-write.phtml', + __DIR__ . '/expected/code.read-write.php', $latte->compile($template) ); @@ -200,7 +200,7 @@ EOD; Assert::matchFile( PHP_VERSION_ID >= 80000 - ? __DIR__ . '/expected/code.optional-chaining.80.phtml' - : __DIR__ . '/expected/code.optional-chaining.phtml', + ? __DIR__ . '/expected/code.optional-chaining.80.php' + : __DIR__ . '/expected/code.optional-chaining.php', $latte->compile($template) ); diff --git a/tests/sandbox/expected/code.callbacks.phtml b/tests/sandbox/expected/code.callbacks.php similarity index 100% rename from tests/sandbox/expected/code.callbacks.phtml rename to tests/sandbox/expected/code.callbacks.php diff --git a/tests/sandbox/expected/code.consts.phtml b/tests/sandbox/expected/code.consts.php similarity index 100% rename from tests/sandbox/expected/code.consts.phtml rename to tests/sandbox/expected/code.consts.php diff --git a/tests/sandbox/expected/code.functions.phtml b/tests/sandbox/expected/code.functions.php similarity index 100% rename from tests/sandbox/expected/code.functions.phtml rename to tests/sandbox/expected/code.functions.php diff --git a/tests/sandbox/expected/code.object.methods.phtml b/tests/sandbox/expected/code.object.methods.php similarity index 100% rename from tests/sandbox/expected/code.object.methods.phtml rename to tests/sandbox/expected/code.object.methods.php diff --git a/tests/sandbox/expected/code.optional-chaining.80.phtml b/tests/sandbox/expected/code.optional-chaining.80.php similarity index 100% rename from tests/sandbox/expected/code.optional-chaining.80.phtml rename to tests/sandbox/expected/code.optional-chaining.80.php diff --git a/tests/sandbox/expected/code.optional-chaining.phtml b/tests/sandbox/expected/code.optional-chaining.php similarity index 100% rename from tests/sandbox/expected/code.optional-chaining.phtml rename to tests/sandbox/expected/code.optional-chaining.php diff --git a/tests/sandbox/expected/code.props.phtml b/tests/sandbox/expected/code.props.php similarity index 100% rename from tests/sandbox/expected/code.props.phtml rename to tests/sandbox/expected/code.props.php diff --git a/tests/sandbox/expected/code.read-write.phtml b/tests/sandbox/expected/code.read-write.php similarity index 100% rename from tests/sandbox/expected/code.read-write.phtml rename to tests/sandbox/expected/code.read-write.php diff --git a/tests/sandbox/expected/code.static.methods.phtml b/tests/sandbox/expected/code.static.methods.php similarity index 100% rename from tests/sandbox/expected/code.static.methods.phtml rename to tests/sandbox/expected/code.static.methods.php diff --git a/tests/sandbox/expected/code.static.props.phtml b/tests/sandbox/expected/code.static.props.php similarity index 100% rename from tests/sandbox/expected/code.static.props.phtml rename to tests/sandbox/expected/code.static.props.php diff --git a/tests/sandbox/expected/code.vars.phtml b/tests/sandbox/expected/code.vars.php similarity index 100% rename from tests/sandbox/expected/code.vars.phtml rename to tests/sandbox/expected/code.vars.php diff --git a/tests/tags/block.breaking.phpt b/tests/tags/block.breaking.phpt index f972872710..6d2e7829a4 100644 --- a/tests/tags/block.breaking.phpt +++ b/tests/tags/block.breaking.phpt @@ -27,7 +27,7 @@ $template = <<<'XX' XX; Assert::matchFile( - __DIR__ . '/expected/block.breaking.phtml', + __DIR__ . '/expected/block.breaking.php', $latte->compile($template) ); Assert::match( diff --git a/tests/tags/block.dynamic.phpt b/tests/tags/block.dynamic.phpt index 031f0212cc..b16abd2859 100644 --- a/tests/tags/block.dynamic.phpt +++ b/tests/tags/block.dynamic.phpt @@ -43,7 +43,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/block.dynamic.phtml', + __DIR__ . '/expected/block.dynamic.php', $latte->compile($template) ); Assert::matchFile( diff --git a/tests/tags/block.local.dynamic.phpt b/tests/tags/block.local.dynamic.phpt index 0fd4151cef..6f8e5e2e30 100644 --- a/tests/tags/block.local.dynamic.phpt +++ b/tests/tags/block.local.dynamic.phpt @@ -44,7 +44,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/block.local.dynamic.phtml', + __DIR__ . '/expected/block.local.dynamic.php', $latte->compile($template) ); Assert::matchFile( diff --git a/tests/tags/block.vars.phpt b/tests/tags/block.vars.phpt index 969099d9b1..8e6d5e22ad 100644 --- a/tests/tags/block.vars.phpt +++ b/tests/tags/block.vars.phpt @@ -51,7 +51,7 @@ $template = <<<'XX' XX; Assert::matchFile( - __DIR__ . '/expected/block.vars.phtml', + __DIR__ . '/expected/block.vars.php', $latte->compile($template) ); Assert::matchFile( diff --git a/tests/tags/define.args.phpt b/tests/tags/define.args.phpt index a2f5a19a08..6395694448 100644 --- a/tests/tags/define.args.phpt +++ b/tests/tags/define.args.phpt @@ -35,7 +35,7 @@ d) {include test null} XX; Assert::matchFile( - __DIR__ . '/expected/define.args1.phtml', + __DIR__ . '/expected/define.args1.php', $latte->compile($template) ); Assert::matchFile( @@ -53,7 +53,7 @@ $template = <<<'XX' XX; Assert::matchFile( - __DIR__ . '/expected/define.typehints.phtml', + __DIR__ . '/expected/define.typehints.php', $latte->compile($template) ); @@ -76,7 +76,7 @@ d) {include test, var2 => 1, 2} // invalid XX; Assert::matchFile( - __DIR__ . '/expected/define.args2.phtml', + __DIR__ . '/expected/define.args2.php', $latte->compile($template) ); Assert::matchFile( @@ -101,7 +101,7 @@ c) {include test, hello => 1} XX; Assert::matchFile( - __DIR__ . '/expected/define.args3.phtml', + __DIR__ . '/expected/define.args3.php', $latte->compile($template) ); @@ -126,7 +126,7 @@ c) {include test, hello => 1}', ])); Assert::matchFile( - __DIR__ . '/expected/define.args4.phtml', + __DIR__ . '/expected/define.args4.php', $latte->compile('main') ); Assert::matchFile( @@ -150,7 +150,7 @@ b) {include test, var1 => 1} XX; Assert::matchFile( - __DIR__ . '/expected/define.args5.phtml', + __DIR__ . '/expected/define.args5.php', $latte->compile($template) ); Assert::matchFile( diff --git a/tests/tags/define.phpt b/tests/tags/define.phpt index 6c7b2dd107..0dadd81dcc 100644 --- a/tests/tags/define.phpt +++ b/tests/tags/define.phpt @@ -29,7 +29,7 @@ $template = <<<'XX' XX; Assert::matchFile( - __DIR__ . '/expected/define.phtml', + __DIR__ . '/expected/define.php', $latte->compile($template) ); Assert::matchFile( diff --git a/tests/tags/embed.block.phpt b/tests/tags/embed.block.phpt index 91a26cbb08..1ebde9d7c1 100644 --- a/tests/tags/embed.block.phpt +++ b/tests/tags/embed.block.phpt @@ -365,6 +365,6 @@ $latte->setLoader(new Latte\Loaders\StringLoader([ ])); Assert::matchFile( - __DIR__ . '/expected/embed.block.phtml', + __DIR__ . '/expected/embed.block.php', $latte->compile('main') ); diff --git a/tests/tags/embed.file.phpt b/tests/tags/embed.file.phpt index 01b75a32fe..ada6088c90 100644 --- a/tests/tags/embed.file.phpt +++ b/tests/tags/embed.file.phpt @@ -739,6 +739,6 @@ $latte->setLoader(new Latte\Loaders\StringLoader([ ])); Assert::matchFile( - __DIR__ . '/expected/embed.file.phtml', + __DIR__ . '/expected/embed.file.php', $latte->compile('main') ); diff --git a/tests/tags/expected/block.breaking.phtml b/tests/tags/expected/block.breaking.php similarity index 100% rename from tests/tags/expected/block.breaking.phtml rename to tests/tags/expected/block.breaking.php diff --git a/tests/tags/expected/block.dynamic.phtml b/tests/tags/expected/block.dynamic.php similarity index 100% rename from tests/tags/expected/block.dynamic.phtml rename to tests/tags/expected/block.dynamic.php diff --git a/tests/tags/expected/block.local.dynamic.phtml b/tests/tags/expected/block.local.dynamic.php similarity index 100% rename from tests/tags/expected/block.local.dynamic.phtml rename to tests/tags/expected/block.local.dynamic.php diff --git a/tests/tags/expected/block.vars.phtml b/tests/tags/expected/block.vars.php similarity index 100% rename from tests/tags/expected/block.vars.phtml rename to tests/tags/expected/block.vars.php diff --git a/tests/tags/expected/define.args1.phtml b/tests/tags/expected/define.args1.php similarity index 100% rename from tests/tags/expected/define.args1.phtml rename to tests/tags/expected/define.args1.php diff --git a/tests/tags/expected/define.args2.phtml b/tests/tags/expected/define.args2.php similarity index 100% rename from tests/tags/expected/define.args2.phtml rename to tests/tags/expected/define.args2.php diff --git a/tests/tags/expected/define.args3.phtml b/tests/tags/expected/define.args3.php similarity index 100% rename from tests/tags/expected/define.args3.phtml rename to tests/tags/expected/define.args3.php diff --git a/tests/tags/expected/define.args4.phtml b/tests/tags/expected/define.args4.php similarity index 100% rename from tests/tags/expected/define.args4.phtml rename to tests/tags/expected/define.args4.php diff --git a/tests/tags/expected/define.args5.phtml b/tests/tags/expected/define.args5.php similarity index 100% rename from tests/tags/expected/define.args5.phtml rename to tests/tags/expected/define.args5.php diff --git a/tests/tags/expected/define.phtml b/tests/tags/expected/define.php similarity index 100% rename from tests/tags/expected/define.phtml rename to tests/tags/expected/define.php diff --git a/tests/tags/expected/define.typehints.phtml b/tests/tags/expected/define.typehints.php similarity index 100% rename from tests/tags/expected/define.typehints.phtml rename to tests/tags/expected/define.typehints.php diff --git a/tests/tags/expected/embed.block.phtml b/tests/tags/expected/embed.block.php similarity index 100% rename from tests/tags/expected/embed.block.phtml rename to tests/tags/expected/embed.block.php diff --git a/tests/tags/expected/embed.file.phtml b/tests/tags/expected/embed.file.php similarity index 100% rename from tests/tags/expected/embed.file.phtml rename to tests/tags/expected/embed.file.php diff --git a/tests/tags/expected/extends.1.phtml b/tests/tags/expected/extends.1.php similarity index 100% rename from tests/tags/expected/extends.1.phtml rename to tests/tags/expected/extends.1.php diff --git a/tests/tags/expected/extends.4.phtml b/tests/tags/expected/extends.4.php similarity index 100% rename from tests/tags/expected/extends.4.phtml rename to tests/tags/expected/extends.4.php diff --git a/tests/tags/expected/extendsCheck.phtml b/tests/tags/expected/extendsCheck.php similarity index 100% rename from tests/tags/expected/extendsCheck.phtml rename to tests/tags/expected/extendsCheck.php diff --git a/tests/tags/expected/first-sep-last.phtml b/tests/tags/expected/first-sep-last.php similarity index 100% rename from tests/tags/expected/first-sep-last.phtml rename to tests/tags/expected/first-sep-last.php diff --git a/tests/tags/expected/for.phtml b/tests/tags/expected/for.php similarity index 100% rename from tests/tags/expected/for.phtml rename to tests/tags/expected/for.php diff --git a/tests/tags/expected/foreach.breaking.attr.phtml b/tests/tags/expected/foreach.breaking.attr.php similarity index 100% rename from tests/tags/expected/foreach.breaking.attr.phtml rename to tests/tags/expected/foreach.breaking.attr.php diff --git a/tests/tags/expected/foreach.breaking.phtml b/tests/tags/expected/foreach.breaking.php similarity index 100% rename from tests/tags/expected/foreach.breaking.phtml rename to tests/tags/expected/foreach.breaking.php diff --git a/tests/tags/expected/foreach.else.phtml b/tests/tags/expected/foreach.else.php similarity index 100% rename from tests/tags/expected/foreach.else.phtml rename to tests/tags/expected/foreach.else.php diff --git a/tests/tags/expected/foreach2.phtml b/tests/tags/expected/foreach2.php similarity index 100% rename from tests/tags/expected/foreach2.phtml rename to tests/tags/expected/foreach2.php diff --git a/tests/tags/expected/general.html.phtml b/tests/tags/expected/general.html.php similarity index 100% rename from tests/tags/expected/general.html.phtml rename to tests/tags/expected/general.html.php diff --git a/tests/tags/expected/general.n-attributes.phtml b/tests/tags/expected/general.n-attributes.php similarity index 100% rename from tests/tags/expected/general.n-attributes.phtml rename to tests/tags/expected/general.n-attributes.php diff --git a/tests/tags/expected/general.xhtml.phtml b/tests/tags/expected/general.xhtml.php similarity index 100% rename from tests/tags/expected/general.xhtml.phtml rename to tests/tags/expected/general.xhtml.php diff --git a/tests/tags/expected/if.phtml b/tests/tags/expected/if.php similarity index 100% rename from tests/tags/expected/if.phtml rename to tests/tags/expected/if.php diff --git a/tests/tags/expected/ifchanged.phtml b/tests/tags/expected/ifchanged.php similarity index 100% rename from tests/tags/expected/ifchanged.phtml rename to tests/tags/expected/ifchanged.php diff --git a/tests/tags/expected/import.phtml b/tests/tags/expected/import.php similarity index 100% rename from tests/tags/expected/import.phtml rename to tests/tags/expected/import.php diff --git a/tests/tags/expected/include.block.from.phtml b/tests/tags/expected/include.block.from.php similarity index 100% rename from tests/tags/expected/include.block.from.phtml rename to tests/tags/expected/include.block.from.php diff --git a/tests/tags/expected/include.inc1.phtml b/tests/tags/expected/include.inc1.php similarity index 100% rename from tests/tags/expected/include.inc1.phtml rename to tests/tags/expected/include.inc1.php diff --git a/tests/tags/expected/include.inc2.phtml b/tests/tags/expected/include.inc2.php similarity index 100% rename from tests/tags/expected/include.inc2.phtml rename to tests/tags/expected/include.inc2.php diff --git a/tests/tags/expected/include.inc3.phtml b/tests/tags/expected/include.inc3.php similarity index 100% rename from tests/tags/expected/include.inc3.phtml rename to tests/tags/expected/include.inc3.php diff --git a/tests/tags/expected/include.phtml b/tests/tags/expected/include.php similarity index 100% rename from tests/tags/expected/include.phtml rename to tests/tags/expected/include.php diff --git a/tests/tags/expected/include.with-blocks.inc.phtml b/tests/tags/expected/include.with-blocks.inc.php similarity index 100% rename from tests/tags/expected/include.with-blocks.inc.phtml rename to tests/tags/expected/include.with-blocks.inc.php diff --git a/tests/tags/expected/include.with-blocks.phtml b/tests/tags/expected/include.with-blocks.php similarity index 100% rename from tests/tags/expected/include.with-blocks.phtml rename to tests/tags/expected/include.with-blocks.php diff --git a/tests/tags/expected/includeblock.inc.phtml b/tests/tags/expected/includeblock.inc.php similarity index 100% rename from tests/tags/expected/includeblock.inc.phtml rename to tests/tags/expected/includeblock.inc.php diff --git a/tests/tags/expected/includeblock.phtml b/tests/tags/expected/includeblock.php similarity index 100% rename from tests/tags/expected/includeblock.phtml rename to tests/tags/expected/includeblock.php diff --git a/tests/tags/expected/inheritance.1.parent.phtml b/tests/tags/expected/inheritance.1.parent.php similarity index 100% rename from tests/tags/expected/inheritance.1.parent.phtml rename to tests/tags/expected/inheritance.1.parent.php diff --git a/tests/tags/expected/inheritance.1.phtml b/tests/tags/expected/inheritance.1.php similarity index 100% rename from tests/tags/expected/inheritance.1.phtml rename to tests/tags/expected/inheritance.1.php diff --git a/tests/tags/expected/inheritance.2.phtml b/tests/tags/expected/inheritance.2.php similarity index 100% rename from tests/tags/expected/inheritance.2.phtml rename to tests/tags/expected/inheritance.2.php diff --git a/tests/tags/expected/iterateWhile.phtml b/tests/tags/expected/iterateWhile.php similarity index 100% rename from tests/tags/expected/iterateWhile.phtml rename to tests/tags/expected/iterateWhile.php diff --git a/tests/tags/expected/n-class.phtml b/tests/tags/expected/n-class.php similarity index 100% rename from tests/tags/expected/n-class.phtml rename to tests/tags/expected/n-class.php diff --git a/tests/tags/expected/print.xss.phtml b/tests/tags/expected/print.xss.php similarity index 100% rename from tests/tags/expected/print.xss.phtml rename to tests/tags/expected/print.xss.php diff --git a/tests/tags/expected/snippet.block.phtml b/tests/tags/expected/snippet.block.php similarity index 100% rename from tests/tags/expected/snippet.block.phtml rename to tests/tags/expected/snippet.block.php diff --git a/tests/tags/expected/snippet.dynamic.alt.phtml b/tests/tags/expected/snippet.dynamic.alt.php similarity index 100% rename from tests/tags/expected/snippet.dynamic.alt.phtml rename to tests/tags/expected/snippet.dynamic.alt.php diff --git a/tests/tags/expected/snippet.dynamic.phtml b/tests/tags/expected/snippet.dynamic.php similarity index 100% rename from tests/tags/expected/snippet.dynamic.phtml rename to tests/tags/expected/snippet.dynamic.php diff --git a/tests/tags/expected/snippet.dynamic2.phtml b/tests/tags/expected/snippet.dynamic2.php similarity index 100% rename from tests/tags/expected/snippet.dynamic2.phtml rename to tests/tags/expected/snippet.dynamic2.php diff --git a/tests/tags/expected/snippet.n.phtml b/tests/tags/expected/snippet.n.php similarity index 100% rename from tests/tags/expected/snippet.n.phtml rename to tests/tags/expected/snippet.n.php diff --git a/tests/tags/expected/snippet.phtml b/tests/tags/expected/snippet.php similarity index 100% rename from tests/tags/expected/snippet.phtml rename to tests/tags/expected/snippet.php diff --git a/tests/tags/expected/switch.phtml b/tests/tags/expected/switch.php similarity index 100% rename from tests/tags/expected/switch.phtml rename to tests/tags/expected/switch.php diff --git a/tests/tags/expected/syntax.phtml b/tests/tags/expected/syntax.php similarity index 100% rename from tests/tags/expected/syntax.phtml rename to tests/tags/expected/syntax.php diff --git a/tests/tags/expected/try.phtml b/tests/tags/expected/try.php similarity index 100% rename from tests/tags/expected/try.phtml rename to tests/tags/expected/try.php diff --git a/tests/tags/expected/while.phtml b/tests/tags/expected/while.php similarity index 100% rename from tests/tags/expected/while.phtml rename to tests/tags/expected/while.php diff --git a/tests/tags/extends.1.phpt b/tests/tags/extends.1.phpt index 1886fe999f..15c37da392 100644 --- a/tests/tags/extends.1.phpt +++ b/tests/tags/extends.1.phpt @@ -26,7 +26,7 @@ EOD ])); Assert::matchFile( - __DIR__ . '/expected/extends.1.phtml', + __DIR__ . '/expected/extends.1.php', $latte->compile('main') ); Assert::same( diff --git a/tests/tags/extends.4.phpt b/tests/tags/extends.4.phpt index 4db3c12a32..2a9b79a41e 100644 --- a/tests/tags/extends.4.phpt +++ b/tests/tags/extends.4.phpt @@ -27,7 +27,7 @@ $latte->setLoader(new Latte\Loaders\StringLoader([ ])); Assert::matchFile( - __DIR__ . '/expected/extends.4.phtml', + __DIR__ . '/expected/extends.4.php', $latte->compile('main') ); Assert::matchFile( diff --git a/tests/tags/extendsCheck.phpt b/tests/tags/extendsCheck.phpt index 4c1bee5889..f7557b3dc1 100644 --- a/tests/tags/extendsCheck.phpt +++ b/tests/tags/extendsCheck.phpt @@ -23,6 +23,6 @@ content '; Assert::matchFile( - __DIR__ . '/expected/extendsCheck.phtml', + __DIR__ . '/expected/extendsCheck.php', $latte->compile($template) ); diff --git a/tests/tags/first-sep-last.phpt b/tests/tags/first-sep-last.phpt index a77c20a61f..9c86cad681 100644 --- a/tests/tags/first-sep-last.phpt +++ b/tests/tags/first-sep-last.phpt @@ -44,7 +44,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/first-sep-last.phtml', + __DIR__ . '/expected/first-sep-last.php', $latte->compile($template) ); Assert::matchFile( diff --git a/tests/tags/for.phpt b/tests/tags/for.phpt index 98c61f4cc1..e4c739588b 100644 --- a/tests/tags/for.phpt +++ b/tests/tags/for.phpt @@ -41,6 +41,6 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/for.phtml', + __DIR__ . '/expected/for.php', $latte->compile($template) ); diff --git a/tests/tags/foreach.breaking.phpt b/tests/tags/foreach.breaking.phpt index d4666b4a90..bf433204f0 100644 --- a/tests/tags/foreach.breaking.phpt +++ b/tests/tags/foreach.breaking.phpt @@ -53,7 +53,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/foreach.breaking.phtml', + __DIR__ . '/expected/foreach.breaking.php', $latte->compile($template) ); @@ -105,7 +105,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/foreach.breaking.attr.phtml', + __DIR__ . '/expected/foreach.breaking.attr.php', $latte->compile($template) ); diff --git a/tests/tags/foreach.else.phpt b/tests/tags/foreach.else.phpt index 7d756885cf..d4ef12a9e7 100644 --- a/tests/tags/foreach.else.phpt +++ b/tests/tags/foreach.else.phpt @@ -17,7 +17,7 @@ $latte->setLoader(new Latte\Loaders\StringLoader); Assert::matchFile( - __DIR__ . '/expected/foreach.else.phtml', + __DIR__ . '/expected/foreach.else.php', $latte->compile(' {foreach [a] as $item} item diff --git a/tests/tags/foreach2.phpt b/tests/tags/foreach2.phpt index 5c7a09591a..5dfa5d3a57 100644 --- a/tests/tags/foreach2.phpt +++ b/tests/tags/foreach2.phpt @@ -31,7 +31,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/foreach2.phtml', + __DIR__ . '/expected/foreach2.php', $latte->compile($template) ); diff --git a/tests/tags/general.html.phpt b/tests/tags/general.html.phpt index 6af185e2c8..4303594328 100644 --- a/tests/tags/general.html.phpt +++ b/tests/tags/general.html.phpt @@ -26,7 +26,7 @@ $params['el'] = new Html("
"); $params['el2'] = Nette\Utils\Html::el('span', ['title' => '/"'])->setText('foo'); Assert::matchFile( - __DIR__ . '/expected/general.html.phtml', + __DIR__ . '/expected/general.html.php', $latte->compile(__DIR__ . '/templates/general.latte') ); Assert::matchFile( diff --git a/tests/tags/general.n-attributes.phpt b/tests/tags/general.n-attributes.phpt index 29c920d319..8bf10e5c48 100644 --- a/tests/tags/general.n-attributes.phpt +++ b/tests/tags/general.n-attributes.phpt @@ -17,7 +17,7 @@ $latte = new Latte\Engine; $params['people'] = ['John', 'Mary', 'Paul']; Assert::matchFile( - __DIR__ . '/expected/general.n-attributes.phtml', + __DIR__ . '/expected/general.n-attributes.php', $latte->compile(__DIR__ . '/templates/n-attributes.latte') ); Assert::matchFile( diff --git a/tests/tags/general.xhtml.phpt b/tests/tags/general.xhtml.phpt index 734fed494c..10c0b8f474 100644 --- a/tests/tags/general.xhtml.phpt +++ b/tests/tags/general.xhtml.phpt @@ -27,7 +27,7 @@ $params['el'] = new Html("
"); $params['el2'] = Nette\Utils\Html::el('span', ['title' => '/"'])->setText('foo'); Assert::matchFile( - __DIR__ . '/expected/general.xhtml.phtml', + __DIR__ . '/expected/general.xhtml.php', $latte->compile(__DIR__ . '/templates/general.latte') ); Assert::matchFile( diff --git a/tests/tags/if.phpt b/tests/tags/if.phpt index a5f2c45afc..fc95a83d4f 100644 --- a/tests/tags/if.phpt +++ b/tests/tags/if.phpt @@ -56,7 +56,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/if.phtml', + __DIR__ . '/expected/if.php', $latte->compile($template) ); diff --git a/tests/tags/ifchanged.phpt b/tests/tags/ifchanged.phpt index dc94d0ed37..4c69e3d1ca 100644 --- a/tests/tags/ifchanged.phpt +++ b/tests/tags/ifchanged.phpt @@ -42,7 +42,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/ifchanged.phtml', + __DIR__ . '/expected/ifchanged.php', $latte->compile($template) ); diff --git a/tests/tags/import.phpt b/tests/tags/import.phpt index 86de0cca83..f506635e9b 100644 --- a/tests/tags/import.phpt +++ b/tests/tags/import.phpt @@ -31,7 +31,7 @@ $latte->setLoader(new Latte\Loaders\StringLoader([ ])); Assert::matchFile( - __DIR__ . '/expected/import.phtml', + __DIR__ . '/expected/import.php', $latte->compile('main') ); Assert::match( diff --git a/tests/tags/include.block.from.phpt b/tests/tags/include.block.from.phpt index 93e9efa417..451caa3045 100644 --- a/tests/tags/include.block.from.phpt +++ b/tests/tags/include.block.from.phpt @@ -55,6 +55,6 @@ Assert::error(function () use ($latte) { }, PHP_VERSION_ID < 80000 ? E_NOTICE : E_WARNING, 'Undefined variable%a%'); Assert::matchFile( - __DIR__ . '/expected/include.block.from.phtml', + __DIR__ . '/expected/include.block.from.php', $latte->compile('main5') ); diff --git a/tests/tags/include.phpt b/tests/tags/include.phpt index e9e0c43ea6..2023f92c5e 100644 --- a/tests/tags/include.phpt +++ b/tests/tags/include.phpt @@ -16,7 +16,7 @@ $latte = new Latte\Engine; $latte->setTempDirectory(getTempDir()); Assert::matchFile( - __DIR__ . '/expected/include.phtml', + __DIR__ . '/expected/include.php', $latte->compile(__DIR__ . '/templates/include.latte') ); Assert::matchFile( @@ -27,14 +27,14 @@ Assert::matchFile( ) ); Assert::matchFile( - __DIR__ . '/expected/include.inc1.phtml', + __DIR__ . '/expected/include.inc1.php', file_get_contents($latte->getCacheFile(__DIR__ . strtr('/templates/subdir/include1.latte', '/', DIRECTORY_SEPARATOR))) ); Assert::matchFile( - __DIR__ . '/expected/include.inc2.phtml', + __DIR__ . '/expected/include.inc2.php', file_get_contents($latte->getCacheFile(__DIR__ . strtr('/templates/subdir/include2.latte', '/', DIRECTORY_SEPARATOR))) ); Assert::matchFile( - __DIR__ . '/expected/include.inc3.phtml', + __DIR__ . '/expected/include.inc3.php', file_get_contents($latte->getCacheFile(__DIR__ . strtr('/templates/include3.latte', '/', DIRECTORY_SEPARATOR))) ); diff --git a/tests/tags/include.with-blocks.phpt b/tests/tags/include.with-blocks.phpt index e2bfa3774e..5f38bd132e 100644 --- a/tests/tags/include.with-blocks.phpt +++ b/tests/tags/include.with-blocks.phpt @@ -28,7 +28,7 @@ $latte->setLoader(new Latte\Loaders\StringLoader([ ])); Assert::matchFile( - __DIR__ . '/expected/include.with-blocks.phtml', + __DIR__ . '/expected/include.with-blocks.php', $latte->compile('main') ); Assert::matchFile( @@ -36,7 +36,7 @@ Assert::matchFile( $latte->renderToString('main') ); Assert::matchFile( - __DIR__ . '/expected/include.with-blocks.inc.phtml', + __DIR__ . '/expected/include.with-blocks.inc.php', $latte->compile('inc') ); diff --git a/tests/tags/includeblock.phpt b/tests/tags/includeblock.phpt index 6f9e61750d..e2e685385c 100644 --- a/tests/tags/includeblock.phpt +++ b/tests/tags/includeblock.phpt @@ -28,7 +28,7 @@ $latte->setLoader(new Latte\Loaders\StringLoader([ ])); Assert::matchFile( - __DIR__ . '/expected/includeblock.phtml', + __DIR__ . '/expected/includeblock.php', @$latte->compile('main') // deprecated ); Assert::matchFile( @@ -36,6 +36,6 @@ Assert::matchFile( @$latte->renderToString('main') // deprecated ); Assert::matchFile( - __DIR__ . '/expected/includeblock.inc.phtml', + __DIR__ . '/expected/includeblock.inc.php', @$latte->compile('inc') // deprecated ); diff --git a/tests/tags/inheritance.1.phpt b/tests/tags/inheritance.1.phpt index e097004cfd..aac4aaa3cd 100644 --- a/tests/tags/inheritance.1.phpt +++ b/tests/tags/inheritance.1.phpt @@ -38,7 +38,7 @@ $latte->setLoader(new Latte\Loaders\StringLoader([ ])); Assert::matchFile( - __DIR__ . '/expected/inheritance.1.phtml', + __DIR__ . '/expected/inheritance.1.php', $latte->compile('main') ); Assert::matchFile( @@ -46,6 +46,6 @@ Assert::matchFile( $latte->renderToString('main', ['people' => ['John', 'Mary', 'Paul']]) ); Assert::matchFile( - __DIR__ . '/expected/inheritance.1.parent.phtml', + __DIR__ . '/expected/inheritance.1.parent.php', $latte->compile('parent') ); diff --git a/tests/tags/inheritance.2.phpt b/tests/tags/inheritance.2.phpt index 1ec2e5ae16..47a273c7f4 100644 --- a/tests/tags/inheritance.2.phpt +++ b/tests/tags/inheritance.2.phpt @@ -34,7 +34,7 @@ $latte->setLoader(new Latte\Loaders\StringLoader([ ])); Assert::matchFile( - __DIR__ . '/expected/inheritance.2.phtml', + __DIR__ . '/expected/inheritance.2.php', $latte->compile('main') ); Assert::matchFile( diff --git a/tests/tags/iterateWhile.phpt b/tests/tags/iterateWhile.phpt index 987a58c9aa..e83c6f0b98 100644 --- a/tests/tags/iterateWhile.phpt +++ b/tests/tags/iterateWhile.phpt @@ -53,7 +53,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/iterateWhile.phtml', + __DIR__ . '/expected/iterateWhile.php', $latte->compile($template) ); diff --git a/tests/tags/n-class.phpt b/tests/tags/n-class.phpt index 9b35a4de48..65883b0936 100644 --- a/tests/tags/n-class.phpt +++ b/tests/tags/n-class.phpt @@ -32,7 +32,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/n-class.phtml', + __DIR__ . '/expected/n-class.php', $latte->compile($template) ); diff --git a/tests/tags/print.xss.phpt b/tests/tags/print.xss.phpt index 6ba987dba9..20ae962d18 100644 --- a/tests/tags/print.xss.phpt +++ b/tests/tags/print.xss.phpt @@ -66,7 +66,7 @@ var prop2 = {$people}; EOD; Assert::matchFile( - __DIR__ . '/expected/print.xss.phtml', + __DIR__ . '/expected/print.xss.php', $latte->compile($template) ); diff --git a/tests/tags/snippet.block.phpt b/tests/tags/snippet.block.phpt index 2abff012ac..b3bafe9ab6 100644 --- a/tests/tags/snippet.block.phpt +++ b/tests/tags/snippet.block.phpt @@ -27,6 +27,6 @@ end EOD; Assert::matchFile( - __DIR__ . '/expected/snippet.block.phtml', + __DIR__ . '/expected/snippet.block.php', $latte->compile($template) ); diff --git a/tests/tags/snippet.dynamic.alt.phpt b/tests/tags/snippet.dynamic.alt.phpt index f86f090a6a..f92a6dd0e9 100644 --- a/tests/tags/snippet.dynamic.alt.phpt +++ b/tests/tags/snippet.dynamic.alt.phpt @@ -35,6 +35,6 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/snippet.dynamic.alt.phtml', + __DIR__ . '/expected/snippet.dynamic.alt.php', $latte->compile($template) ); diff --git a/tests/tags/snippet.dynamic.phpt b/tests/tags/snippet.dynamic.phpt index 7e8779a824..96a63ba2d2 100644 --- a/tests/tags/snippet.dynamic.phpt +++ b/tests/tags/snippet.dynamic.phpt @@ -26,7 +26,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/snippet.dynamic.phtml', + __DIR__ . '/expected/snippet.dynamic.php', $latte->compile($template) ); @@ -42,6 +42,6 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/snippet.dynamic2.phtml', + __DIR__ . '/expected/snippet.dynamic2.php', $latte->compile($template) ); diff --git a/tests/tags/snippet.n.phpt b/tests/tags/snippet.n.phpt index c0f1fb7d75..5f576a0313 100644 --- a/tests/tags/snippet.n.phpt +++ b/tests/tags/snippet.n.phpt @@ -29,6 +29,6 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/snippet.n.phtml', + __DIR__ . '/expected/snippet.n.php', @$latte->compile($template) // deprecated n:inner-snippet ); diff --git a/tests/tags/snippet.phpt b/tests/tags/snippet.phpt index 9784190e47..f0e945dede 100644 --- a/tests/tags/snippet.phpt +++ b/tests/tags/snippet.phpt @@ -38,6 +38,6 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/snippet.phtml', + __DIR__ . '/expected/snippet.php', $latte->compile($template) ); diff --git a/tests/tags/switch.phpt b/tests/tags/switch.phpt index f85fc3f90c..ec0dd13232 100644 --- a/tests/tags/switch.phpt +++ b/tests/tags/switch.phpt @@ -64,7 +64,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/switch.phtml', + __DIR__ . '/expected/switch.php', $latte->compile($template) ); diff --git a/tests/tags/syntax.phpt b/tests/tags/syntax.phpt index 8766fb1ef8..43d14a0755 100644 --- a/tests/tags/syntax.phpt +++ b/tests/tags/syntax.phpt @@ -37,7 +37,7 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/syntax.phtml', + __DIR__ . '/expected/syntax.php', $latte->compile($template) ); Assert::matchFile( diff --git a/tests/tags/try.phpt b/tests/tags/try.phpt index 108d33086f..747ff86dfd 100644 --- a/tests/tags/try.phpt +++ b/tests/tags/try.phpt @@ -152,7 +152,7 @@ XX // code Assert::matchFile( - __DIR__ . '/expected/try.phtml', + __DIR__ . '/expected/try.php', $latte->compile( <<<'XX' {try} diff --git a/tests/tags/while.phpt b/tests/tags/while.phpt index f26b1225a4..4cc8692500 100644 --- a/tests/tags/while.phpt +++ b/tests/tags/while.phpt @@ -36,6 +36,6 @@ $template = <<<'EOD' EOD; Assert::matchFile( - __DIR__ . '/expected/while.phtml', + __DIR__ . '/expected/while.php', $latte->compile($template) );