Skip to content

Commit 9794ed8

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/NestingLevel: improve code coverage
1 parent c1c8517 commit 9794ed8

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.1.inc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,10 @@ function nestingEleven()
9999
}
100100
}
101101

102-
?>
102+
abstract class AbstractClass {
103+
abstract public function sniffShouldIgnoreAbstractMethods();
104+
}
105+
106+
interface MyInterface {
107+
public function sniffShouldIgnoreInterfaceMethods();
108+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
// Intentional parse error (missing opening curly bracket).
4+
// This should be the only test in this file.
5+
// Testing that the sniff is *not* triggered.
6+
7+
function sniffShouldBailMissingScopeOpener()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
// Intentional parse error (missing closing curly bracket).
4+
// This should be the only test in this file.
5+
// Testing that the sniff is *not* triggered.
6+
7+
function sniffShouldBailMissingScopeCloser() {

0 commit comments

Comments
 (0)