Skip to content

Commit

Permalink
add class to DocBlock::ofMethod in TestTest
Browse files Browse the repository at this point in the history
  • Loading branch information
wgevaert authored and sebastianbergmann committed Oct 7, 2019
1 parent 36812c0 commit 74be130
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/unit/Util/TestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ public function testTestWithEmptyAnnotation(): void
$result = DocBlock::ofMethod(new \ReflectionMethod(
\VariousDocblockDefinedDataProvider::class,
'anotherAnnotation'
))->getProvidedData();
), VariousDocblockDefinedDataProvider::class)->getProvidedData();

$this->assertNull($result);
}
Expand All @@ -1022,7 +1022,7 @@ public function testTestWithSimpleCase(): void
$result = DocBlock::ofMethod(new \ReflectionMethod(
\VariousDocblockDefinedDataProvider::class,
'testWith1'
))->getProvidedData();
), VariousDocblockDefinedDataProvider::class)->getProvidedData();

$this->assertEquals([[1]], $result);
}
Expand All @@ -1032,7 +1032,7 @@ public function testTestWithMultiLineMultiParameterCase(): void
$result = DocBlock::ofMethod(new \ReflectionMethod(
\VariousDocblockDefinedDataProvider::class,
'testWith1234'
))->getProvidedData();
), VariousDocblockDefinedDataProvider::class)->getProvidedData();

$this->assertEquals([[1, 2], [3, 4]], $result);
}
Expand All @@ -1042,7 +1042,7 @@ public function testTestWithVariousTypes(): void
$result = DocBlock::ofMethod(new \ReflectionMethod(
\VariousDocblockDefinedDataProvider::class,
'testWithABTrueNull'
))->getProvidedData();
), VariousDocblockDefinedDataProvider::class)->getProvidedData();

$this->assertEquals([['ab'], [true], [null]], $result);
}
Expand All @@ -1052,7 +1052,7 @@ public function testTestWithAnnotationAfter(): void
$result = DocBlock::ofMethod(new \ReflectionMethod(
\VariousDocblockDefinedDataProvider::class,
'testWith12AndAnotherAnnotation'
))->getProvidedData();
), VariousDocblockDefinedDataProvider::class)->getProvidedData();

$this->assertEquals([[1], [2]], $result);
}
Expand All @@ -1062,7 +1062,7 @@ public function testTestWithSimpleTextAfter(): void
$result = DocBlock::ofMethod(new \ReflectionMethod(
\VariousDocblockDefinedDataProvider::class,
'testWith12AndBlahBlah'
))->getProvidedData();
), VariousDocblockDefinedDataProvider::class)->getProvidedData();

$this->assertEquals([[1], [2]], $result);
}
Expand All @@ -1072,7 +1072,7 @@ public function testTestWithCharacterEscape(): void
$result = DocBlock::ofMethod(new \ReflectionMethod(
\VariousDocblockDefinedDataProvider::class,
'testWithEscapedString'
))->getProvidedData();
), VariousDocblockDefinedDataProvider::class)->getProvidedData();

$this->assertEquals([['"', '"']], $result);
}
Expand All @@ -1082,7 +1082,7 @@ public function testTestWithThrowsProperExceptionIfDatasetCannotBeParsed(): void
$docBlock = DocBlock::ofMethod(new \ReflectionMethod(
\VariousDocblockDefinedDataProvider::class,
'testWithMalformedValue'
));
), VariousDocblockDefinedDataProvider::class);

$this->expectException(Exception::class);
$this->expectExceptionMessageRegExp('/^The data set for the @testWith annotation cannot be parsed:/');
Expand All @@ -1095,7 +1095,7 @@ public function testTestWithThrowsProperExceptionIfMultiLineDatasetCannotBeParse
$docBlock = DocBlock::ofMethod(new \ReflectionMethod(
\VariousDocblockDefinedDataProvider::class,
'testWithWellFormedAndMalformedValue'
));
), VariousDocblockDefinedDataProvider::class);

$this->expectException(Exception::class);
$this->expectExceptionMessageRegExp('/^The data set for the @testWith annotation cannot be parsed:/');
Expand Down

0 comments on commit 74be130

Please sign in to comment.