File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -244,18 +244,18 @@ public function testReportWidthInputHandlingForAuto()
244
244
/**
245
245
* Test that the report width will be set correctly for various types of input.
246
246
*
247
- * @param mixed $input Input value received.
247
+ * @param mixed $value Input value received.
248
248
* @param int $expected Expected report width.
249
249
*
250
250
* @dataProvider dataReportWidthInputHandling
251
251
* @covers \PHP_CodeSniffer\Config::__set
252
252
*
253
253
* @return void
254
254
*/
255
- public function testReportWidthInputHandling ($ input , $ expected )
255
+ public function testReportWidthInputHandling ($ value , $ expected )
256
256
{
257
257
$ config = new Config ();
258
- $ config ->reportWidth = $ input ;
258
+ $ config ->reportWidth = $ value ;
259
259
260
260
$ this ->assertSame ($ expected , $ config ->reportWidth );
261
261
Original file line number Diff line number Diff line change @@ -730,9 +730,9 @@ public static function dataSuppressFile()
730
730
{
731
731
return [
732
732
'no suppression ' => [
733
- 'before ' => '' ,
734
- 'after ' => '' ,
735
- 'expectedErrors ' => 1 ,
733
+ 'before ' => '' ,
734
+ 'after ' => '' ,
735
+ 'expectedWarnings ' => 1 ,
736
736
],
737
737
738
738
// Process with suppression.
Original file line number Diff line number Diff line change @@ -36,16 +36,16 @@ public function testNotBitwiseAndToken()
36
36
/**
37
37
* Test correctly identifying whether a "bitwise and" token is a reference or not.
38
38
*
39
- * @param string $identifier Comment which precedes the test case.
39
+ * @param string $testMarker Comment which precedes the test case.
40
40
* @param bool $expected Expected function output.
41
41
*
42
42
* @dataProvider dataIsReference
43
43
*
44
44
* @return void
45
45
*/
46
- public function testIsReference ($ identifier , $ expected )
46
+ public function testIsReference ($ testMarker , $ expected )
47
47
{
48
- $ bitwiseAnd = $ this ->getTargetToken ($ identifier , T_BITWISE_AND );
48
+ $ bitwiseAnd = $ this ->getTargetToken ($ testMarker , T_BITWISE_AND );
49
49
$ result = self ::$ phpcsFile ->isReference ($ bitwiseAnd );
50
50
$ this ->assertSame ($ expected , $ result );
51
51
You can’t perform that action at this time.
0 commit comments