mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
Add method scope visibility
Change-Id: I116b91653c01ace9fa0d9a49f2fa43375ef2924d
This commit is contained in:
parent
9f7b99dd98
commit
99659b32c2
|
@ -2,7 +2,6 @@
|
|||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" />
|
||||
<exclude name="Squiz.Scope.MethodScope.Missing" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
||||
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
|
||||
</rule>
|
||||
|
|
|
@ -18,14 +18,14 @@ class ExpressionTest extends MediaWikiTestCase {
|
|||
/**
|
||||
* @dataProvider provideExpressions
|
||||
*/
|
||||
function testExpression( $input, $expected ) {
|
||||
public function testExpression( $input, $expected ) {
|
||||
$this->assertEquals(
|
||||
$expected,
|
||||
$this->parser->doExpression( $input )
|
||||
);
|
||||
}
|
||||
|
||||
function provideExpressions() {
|
||||
public function provideExpressions() {
|
||||
return [
|
||||
[ '1 or 0', '1' ],
|
||||
[ 'not (1 and 0)', '1' ],
|
||||
|
|
Loading…
Reference in a new issue