mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-20 18:06:40 +00:00
tests: phpdoc cleanup
This commit is contained in:
parent
d6d9dde0b2
commit
be1da07ee5
@ -39,7 +39,6 @@ class BrewingStandTest extends TestCase{
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @dataProvider slotsProvider
|
||||
*
|
||||
* @param BrewingStandSlot[] $slots
|
||||
|
@ -54,9 +54,6 @@ class HandlerListManagerTest extends TestCase{
|
||||
/**
|
||||
* @dataProvider isValidClassProvider
|
||||
*
|
||||
* @param \ReflectionClass $class
|
||||
* @param bool $isValid
|
||||
* @param string $reason
|
||||
* @phpstan-param \ReflectionClass<Event> $class
|
||||
*/
|
||||
public function testIsValidClass(\ReflectionClass $class, bool $isValid, string $reason) : void{
|
||||
@ -77,8 +74,6 @@ class HandlerListManagerTest extends TestCase{
|
||||
/**
|
||||
* @dataProvider resolveParentClassProvider
|
||||
*
|
||||
* @param \ReflectionClass $class
|
||||
* @param \ReflectionClass|null $expect
|
||||
* @phpstan-param \ReflectionClass<Event> $class
|
||||
* @phpstan-param \ReflectionClass<Event>|null $expect
|
||||
*/
|
||||
|
@ -45,9 +45,6 @@ class LegacyStringToItemParserTest extends TestCase{
|
||||
|
||||
/**
|
||||
* @dataProvider itemFromStringProvider
|
||||
* @param string $string
|
||||
* @param int $id
|
||||
* @param int $meta
|
||||
*/
|
||||
public function testFromStringSingle(string $string, int $id, int $meta) : void{
|
||||
$item = LegacyStringToItemParser::getInstance()->parse($string);
|
||||
|
@ -49,10 +49,6 @@ class ApiVersionTest extends TestCase{
|
||||
|
||||
/**
|
||||
* @dataProvider compatibleApiProvider
|
||||
*
|
||||
* @param string $myVersion
|
||||
* @param string $wantVersion
|
||||
* @param bool $expected
|
||||
*/
|
||||
public function testCompatibleApi(string $myVersion, string $wantVersion, bool $expected) : void{
|
||||
self::assertSame($expected, ApiVersion::isCompatible($myVersion, [$wantVersion]), "my version: $myVersion, their version: $wantVersion, expect " . ($expected ? "yes" : "no"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user