From 6b728f3aff401b3b8d4eade3a153695974b02f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1?= Date: Mon, 16 Nov 2020 21:52:02 +0100 Subject: [PATCH] remove unsupported macro {_} from tests --- tests/Tests/Translator.phpt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/Tests/Translator.phpt b/tests/Tests/Translator.phpt index 2953c1d..7f1fd2c 100644 --- a/tests/Tests/Translator.phpt +++ b/tests/Tests/Translator.phpt @@ -169,18 +169,12 @@ class Translator extends Tests\TestAbstract $latte = $container->getByType(Nette\Bridges\ApplicationLatte\ILatteFactory::class)->create(); Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_messages.hello}'))); - Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_}messages.hello{/_}'))); - Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_}{php $message = "messages.hello"}{$message}{/_}'))); Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{php $message = "messages.hello"}{$message|translate}'))); Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_hello}'))); - Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_}hello{/_}'))); - Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_}{php $message = "hello"}{$message}{/_}'))); Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{php $message = "hello"}{$message|translate}'))); Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_//messages.hello}'))); - Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_}//messages.hello{/_}'))); - Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_}{php $message = "//messages.hello"}{$message}{/_}'))); Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{php $message = "//messages.hello"}{$message|translate}'))); Tester\Assert::same('Hello', $latte->renderToString(Tester\FileMock::create('{_hello, [], messages, en}')));