Skip to content

Commit 57cd030

Browse files
committed
(Sniffer) Remove newline and underscore prefix
1 parent 907fa03 commit 57cd030

File tree

9 files changed

+9
-10
lines changed

9 files changed

+9
-10
lines changed

tests/unit/phpDocumentor/Reflection/Php/Class_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,6 @@ public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided(): void
207207
new Location(100, 20),
208208
new Location(101, 20)
209209
);
210-
$this->_testLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
210+
$this->assertLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
211211
}
212212
}

tests/unit/phpDocumentor/Reflection/Php/ConstantTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ public function testGetVisibility(): void
104104
public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided(): void
105105
{
106106
$fixture = new Constant($this->fqsen, $this->docBlock, null, new Location(100, 20), new Location(101, 20));
107-
$this->_testLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
107+
$this->assertLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
108108
}
109109
}

tests/unit/phpDocumentor/Reflection/Php/Enum_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,6 @@ public function testAddAndGettingCases(): void
154154
public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided(): void
155155
{
156156
$fixture = new Enum_($this->fqsen, null, $this->docBlock, new Location(100, 20), new Location(101, 20));
157-
$this->_testLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
157+
$this->assertLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
158158
}
159159
}

tests/unit/phpDocumentor/Reflection/Php/Function_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,6 @@ public function testGetHasReturnByReferenceFromConstructor(): void
133133
public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided(): void
134134
{
135135
$fixture = new Function_($this->fqsen, $this->docBlock, new Location(100, 20), new Location(101, 20));
136-
$this->_testLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
136+
$this->assertLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
137137
}
138138
}

tests/unit/phpDocumentor/Reflection/Php/Interface_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function testReturningTheParentsOfThisInterface(): void
130130
public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided(): void
131131
{
132132
$fixture = new Interface_($this->fqsen, [], $this->docBlock, new Location(100, 20), new Location(101, 20));
133-
$this->_testLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
133+
$this->assertLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
134134
}
135135

136136
/**

tests/unit/phpDocumentor/Reflection/Php/MethodTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,6 @@ public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided(): void
208208
new Location(100, 20),
209209
new Location(101, 20)
210210
);
211-
$this->_testLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
211+
$this->assertLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
212212
}
213213
}

tests/unit/phpDocumentor/Reflection/Php/PropertyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function testGetDocBlock(): void
165165
public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided(): void
166166
{
167167
$fixture = new Property($this->fqsen, null, null, null, false, new Location(100, 20), new Location(101, 20));
168-
$this->_testLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
168+
$this->assertLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
169169
}
170170

171171
/**

tests/unit/phpDocumentor/Reflection/Php/TestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ public function testLineNumberIsMinusOneWhenNoneIsProvided(): void
4646
*/
4747
public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided(): void
4848
{
49-
5049
}
5150

5251
/**
5352
* @param Element|MetaDataContainerInterface $fixture
5453
*/
55-
protected function _testLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture): void
54+
protected function assertLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture): void
5655
{
5756
$this->assertSame(100, $fixture->getLocation()->getLineNumber());
5857
$this->assertSame(20, $fixture->getLocation()->getColumnNumber());

tests/unit/phpDocumentor/Reflection/Php/Trait_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@ public function testGetDocblock(): void
122122
public function testLineAndColumnNumberIsReturnedWhenALocationIsProvided(): void
123123
{
124124
$fixture = new Trait_($this->fqsen, $this->docBlock, new Location(100, 20), new Location(101, 20));
125-
$this->_testLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
125+
$this->assertLineAndColumnNumberIsReturnedWhenALocationIsProvided($fixture);
126126
}
127127
}

0 commit comments

Comments
 (0)