mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
PHPUnit migrated to attributes :(
This commit is contained in:
@ -23,6 +23,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\item;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use pocketmine\block\VanillaBlocks;
|
||||
|
||||
@ -43,9 +44,7 @@ class LegacyStringToItemParserTest extends TestCase{
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider itemFromStringProvider
|
||||
*/
|
||||
#[DataProvider("itemFromStringProvider")]
|
||||
public function testFromStringSingle(string $string, Item $expected) : void{
|
||||
$item = LegacyStringToItemParser::getInstance()->parse($string);
|
||||
|
||||
|
Reference in New Issue
Block a user