This commit is contained in:
Dylan K. Taylor
2025-08-31 00:22:59 +01:00
parent af02f6b448
commit 6a4240fa02

View File

@ -23,6 +23,7 @@ declare(strict_types=1);
namespace pocketmine\inventory; namespace pocketmine\inventory;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\item\ItemTypeIds; use pocketmine\item\ItemTypeIds;
@ -147,10 +148,10 @@ final class CombinedInventoryProxyTest extends TestCase{
} }
/** /**
* @dataProvider setContentsProvider
* @param Item[] $altItems * @param Item[] $altItems
* @phpstan-param array<int, Item> $altItems * @phpstan-param array<int, Item> $altItems
*/ */
#[DataProvider("setContentsProvider")]
public function testSetContents(array $altItems) : void{ public function testSetContents(array $altItems) : void{
$backing = $this->createInventories(); $backing = $this->createInventories();
$inventory = new CombinedInventoryProxy($backing); $inventory = new CombinedInventoryProxy($backing);