Skip to content

Commit 4255dd3

Browse files
committed
Rename tests
1 parent ddc8c7a commit 4255dd3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/PHPStan/Parser/PhpDocParserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5517,7 +5517,7 @@ public function testNegatedAssertionToString(): void
55175517
$this->assertSame('@phpstan-assert !Type $param', $assertNode->__toString());
55185518
}
55195519

5520-
public function dataLines(): iterable
5520+
public function dataLinesAndIndexes(): iterable
55215521
{
55225522
yield [
55235523
'/** @param Foo $a */',
@@ -5564,7 +5564,7 @@ public function dataLines(): iterable
55645564
}
55655565

55665566
/**
5567-
* @dataProvider dataLines
5567+
* @dataProvider dataLinesAndIndexes
55685568
* @param list<array{int, int, int, int}> $childrenLines
55695569
*/
55705570
public function testLinesAndIndexes(string $phpDoc, array $childrenLines): void

tests/PHPStan/Parser/TypeParserTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ public function provideParseData(): array
19051905
];
19061906
}
19071907

1908-
public function dataLines(): iterable
1908+
public function dataLinesAndIndexes(): iterable
19091909
{
19101910
yield [
19111911
'int | object{foo: int}[]',
@@ -1928,9 +1928,9 @@ public function dataLines(): iterable
19281928
}
19291929

19301930
/**
1931-
* @dataProvider dataLines
1931+
* @dataProvider dataLinesAndIndexes
19321932
*/
1933-
public function testLines(string $input, int $startLine, int $endLine, int $startIndex, int $endIndex): void
1933+
public function testLinesAndIndexes(string $input, int $startLine, int $endLine, int $startIndex, int $endIndex): void
19341934
{
19351935
$tokens = new TokenIterator($this->lexer->tokenize($input));
19361936
$typeParser = new TypeParser(new ConstExprParser(true, true), true, [

0 commit comments

Comments
 (0)