Skip to content

Commit 6e4a2bd

Browse files
committed
Add two test errors on line 150
1 parent 6a1ed60 commit 6e4a2bd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/Sniffs/NamingConventions/ValidVariableNameSniffTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function testErrors(): void
6060
138 => self::CODE_NOT_CAMEL_CAPS,
6161
141 => self::CODE_NOT_CAMEL_CAPS,
6262
146 => self::CODE_MEMBER_NOT_CAMEL_CAPS,
63+
150 => [self::CODE_NOT_CAMEL_CAPS, self::CODE_NOT_CAMEL_CAPS],
6364
];
6465
$possibleLines = array_keys($errorTypesPerLine);
6566

@@ -77,6 +78,6 @@ public function testErrors(): void
7778
}
7879
}
7980

80-
self::assertSame(36, $file->getErrorCount());
81+
self::assertSame(38, $file->getErrorCount());
8182
}
8283
}

tests/Sniffs/NamingConventions/data/ValidVariableNameSniffTest.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,5 @@ echo $obj?->varName;
146146
echo $obj?->var_name;
147147
echo $obj?->varname;
148148
echo $obj?->_varName;
149+
150+
$var_name . $var_name;

0 commit comments

Comments
 (0)