Skip to content

Commit 6080303

Browse files
rodrigoprimojrfnl
authored andcommitted
Improve tests based on feedback from PR review
1 parent eef593b commit 6080303

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.1.inc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ define($obj->constantName(), 'sniff should bow out');
7777
define(MyClass::constantName(), 'sniff should bow out');
7878
define(condition() ? 'name1' : 'name2', 'sniff should bow out');
7979

80+
$callable = define(...);
81+
8082
// Valid if outside the global namespace. Sniff should bow out.
8183
function define($param) {}
82-
$callable = define(...);
84+
85+
class MyClass {
86+
public function define($param) {}
87+
}
88+
89+
$a = ($cond) ? DEFINE : SOMETHING_ELSE;

0 commit comments

Comments
 (0)