forked from VincentLanglet/Twig-CS-Fixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIncludeToRenderFunctionRuleTest.php
More file actions
29 lines (25 loc) · 1.02 KB
/
IncludeToRenderFunctionRuleTest.php
File metadata and controls
29 lines (25 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
declare(strict_types=1);
namespace TwigCsFixer\Tests\Rules\Function\RenderFunction;
use TwigCsFixer\Rules\Function\IncludeToRenderFunctionRule;
use TwigCsFixer\Rules\Punctuation\PunctuationSpacingRule;
use TwigCsFixer\Test\AbstractRuleTestCase;
final class IncludeToRenderFunctionRuleTest extends AbstractRuleTestCase
{
public function testRule(): void
{
$this->checkRule(
[
new IncludeToRenderFunctionRule(),
// Extra rule for a better diff
new PunctuationSpacingRule(),
],
[
'IncludeToRender.Error:13:4' => 'Include function must be used instead of include tag.',
'IncludeToRender.Error:14:4' => 'Include function must be used instead of include tag.',
'IncludeToRender.Error:15:5' => 'Include function must be used instead of include tag.',
'IncludeToRender.Error:16:5' => 'Include function must be used instead of include tag.',
]
);
}
}