Skip to content

Commit

Permalink
tests: renamed some files
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 28, 2022
1 parent 8dde14f commit 6a47180
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
coverage: none

- run: composer create-project nette/code-checker temp/code-checker ^3 --no-progress
- run: php temp/code-checker/code-checker --strict-types --no-progress
- run: php temp/code-checker/code-checker --strict-types --no-progress --ignore expected


nette_cs:
Expand Down
2 changes: 1 addition & 1 deletion tests/Bridges.Latte2/UIMacros.isLinkCurrent.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $factory->createTemplate($presenter);
$latte->setLoader(new Latte\Loaders\StringLoader);

Assert::matchFile(
__DIR__ . '/expected/UIMacros.isLinkCurrent.phtml',
__DIR__ . '/expected/UIMacros.isLinkCurrent.php',
$latte->compile(
<<<'XX'
<a n:href="default" n:class="$presenter->isLinkCurrent() ? current">n:href before n:class</a>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/Bridges.Latte3/isLinkCurrent().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $factory->createTemplate($presenter);
$latte->setLoader(new Latte\Loaders\StringLoader);

Assert::matchFile(
__DIR__ . '/expected/isLinkCurrent.phtml',
__DIR__ . '/expected/isLinkCurrent.php',
$latte->compile(
<<<'XX'
<a n:href="default" n:class="$presenter->isLinkCurrent() ? current">n:href before n:class</a>
Expand Down
2 changes: 1 addition & 1 deletion tests/Bridges.Latte3/n-snippet.block.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ $template = <<<'EOD'
EOD;

Assert::matchFile(
__DIR__ . '/expected/n-snippet.block.phtml',
__DIR__ . '/expected/n-snippet.block.php',
$latte->compile($template),
);
2 changes: 1 addition & 1 deletion tests/Bridges.Latte3/n-snippet.dynamic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ $template = <<<'EOD'
EOD;

Assert::matchFile(
__DIR__ . '/expected/n-snippet.dynamic.phtml',
__DIR__ . '/expected/n-snippet.dynamic.php',
$latte->compile($template),
);
2 changes: 1 addition & 1 deletion tests/Bridges.Latte3/n-snippet.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ $template = <<<'EOD'
EOD;

Assert::matchFile(
__DIR__ . '/expected/n-snippet.phtml',
__DIR__ . '/expected/n-snippet.php',
$latte->compile($template),
);
2 changes: 1 addition & 1 deletion tests/Bridges.Latte3/{ifCurrent}.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $factory->createTemplate($presenter);
$latte->setLoader(new Latte\Loaders\StringLoader);

Assert::matchFile(
__DIR__ . '/expected/ifCurrent.phtml',
__DIR__ . '/expected/ifCurrent.php',
@$latte->compile( // is deprecated
<<<'XX'
{ifCurrent}empty{/ifCurrent}
Expand Down
4 changes: 2 additions & 2 deletions tests/Bridges.Latte3/{snippet}.dynamic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $template = <<<'EOD'
EOD;

Assert::matchFile(
__DIR__ . '/expected/snippet.dynamic.phtml',
__DIR__ . '/expected/snippet.dynamic.php',
$latte->compile($template),
);

Expand All @@ -44,6 +44,6 @@ $template = <<<'EOD'
EOD;

Assert::matchFile(
__DIR__ . '/expected/snippet.dynamic2.phtml',
__DIR__ . '/expected/snippet.dynamic2.php',
$latte->compile($template),
);
2 changes: 1 addition & 1 deletion tests/Bridges.Latte3/{snippet}.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ $template = <<<'EOD'
EOD;

Assert::matchFile(
__DIR__ . '/expected/snippet.phtml',
__DIR__ . '/expected/snippet.php',
$latte->compile($template),
);

0 comments on commit 6a47180

Please sign in to comment.