-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathStrictComparisonOperatorRuleTest.php
More file actions
21 lines (17 loc) · 934 Bytes
/
StrictComparisonOperatorRuleTest.php
File metadata and controls
21 lines (17 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
declare(strict_types=1);
namespace TwigCsFixer\Tests\Rules\Operator\StrictComparisonOperator;
use TwigCsFixer\Rules\Operator\StrictComparisonOperatorRule;
use TwigCsFixer\Test\AbstractRuleTestCase;
final class StrictComparisonOperatorRuleTest extends AbstractRuleTestCase
{
public function testRule(): void
{
$this->checkRule(new StrictComparisonOperatorRule(), [
'StrictComparisonOperator.Error:1:6' => 'Use strict comparison operators === / !== instead of same as / not same as.',
'StrictComparisonOperator.Error:2:6' => 'Use strict comparison operators === / !== instead of same as / not same as.',
'StrictComparisonOperator.Error:3:6' => 'Use strict comparison operators === / !== instead of same as / not same as.',
'StrictComparisonOperator.Error:4:6' => 'Use strict comparison operators === / !== instead of same as / not same as.',
]);
}
}