Skip to content

Commit

Permalink
Generic/NestingLevel: improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoprimo authored and jrfnl committed Dec 10, 2024
1 parent c1c8517 commit 9794ed8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,10 @@ function nestingEleven()
}
}

?>
abstract class AbstractClass {
abstract public function sniffShouldIgnoreAbstractMethods();
}

interface MyInterface {
public function sniffShouldIgnoreInterfaceMethods();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// Intentional parse error (missing opening curly bracket).
// This should be the only test in this file.
// Testing that the sniff is *not* triggered.

function sniffShouldBailMissingScopeOpener()
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// Intentional parse error (missing closing curly bracket).
// This should be the only test in this file.
// Testing that the sniff is *not* triggered.

function sniffShouldBailMissingScopeCloser() {

0 comments on commit 9794ed8

Please sign in to comment.