From 6e73f21cdc7433f0674dfcdf4817f478aa5528e6 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 26 Feb 2024 16:18:34 +0000 Subject: [PATCH] Fix CS in tests --- .php-cs-fixer.php | 3 ++- tests/phpunit/DataPacketTest.php | 20 ++++---------------- tests/phpunit/LoginPacketTest.php | 21 ++++----------------- tests/phpunit/ProtocolInfoTest.php | 17 ++++------------- tests/phpunit/TestPacket.php | 17 ++++------------- 5 files changed, 18 insertions(+), 60 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 520da0e1..514bf90b 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -1,7 +1,8 @@ in(__DIR__ . '/src'); + ->in(__DIR__ . '/src') + ->in(__DIR__ . '/tests'); return (new PhpCsFixer\Config) ->setRiskyAllowed(true) diff --git a/tests/phpunit/DataPacketTest.php b/tests/phpunit/DataPacketTest.php index ad005fce..5f86f82f 100644 --- a/tests/phpunit/DataPacketTest.php +++ b/tests/phpunit/DataPacketTest.php @@ -1,33 +1,21 @@ * - * ____ _ _ __ __ _ __ __ ____ - * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ - * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | - * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ - * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| - * - * This program is free software: you can redistribute it and/or modify + * BedrockProtocol is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * - * @author PocketMine Team - * @link http://www.pocketmine.net/ - * - * -*/ + */ declare(strict_types=1); namespace pocketmine\network\mcpe\protocol; use PHPUnit\Framework\TestCase; -use pocketmine\network\mcpe\protocol\serializer\ItemTypeDictionary; use pocketmine\network\mcpe\protocol\serializer\PacketSerializer; -use pocketmine\network\mcpe\protocol\serializer\PacketSerializerContext; -use pocketmine\network\mcpe\protocol\types\ItemTypeEntry; class DataPacketTest extends TestCase{ diff --git a/tests/phpunit/LoginPacketTest.php b/tests/phpunit/LoginPacketTest.php index 67bbcfd2..78a66c8e 100644 --- a/tests/phpunit/LoginPacketTest.php +++ b/tests/phpunit/LoginPacketTest.php @@ -1,34 +1,21 @@ * - * ____ _ _ __ __ _ __ __ ____ - * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ - * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | - * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ - * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| - * - * This program is free software: you can redistribute it and/or modify + * BedrockProtocol is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * - * @author PocketMine Team - * @link http://www.pocketmine.net/ - * - * -*/ + */ declare(strict_types=1); namespace pocketmine\network\mcpe\protocol; use PHPUnit\Framework\TestCase; -use pocketmine\network\mcpe\convert\GlobalItemTypeDictionary; -use pocketmine\network\mcpe\protocol\serializer\ItemTypeDictionary; use pocketmine\network\mcpe\protocol\serializer\PacketSerializer; -use pocketmine\network\mcpe\protocol\serializer\PacketSerializerContext; -use pocketmine\network\mcpe\protocol\types\ItemTypeEntry; use function strlen; class LoginPacketTest extends TestCase{ diff --git a/tests/phpunit/ProtocolInfoTest.php b/tests/phpunit/ProtocolInfoTest.php index e83a9198..f4fa2900 100644 --- a/tests/phpunit/ProtocolInfoTest.php +++ b/tests/phpunit/ProtocolInfoTest.php @@ -1,23 +1,14 @@ * - * ____ _ _ __ __ _ __ __ ____ - * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ - * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | - * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ - * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| - * - * This program is free software: you can redistribute it and/or modify + * BedrockProtocol is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * - * @author PocketMine Team - * @link http://www.pocketmine.net/ - * - * -*/ + */ declare(strict_types=1); diff --git a/tests/phpunit/TestPacket.php b/tests/phpunit/TestPacket.php index 6e6091c6..856cece0 100644 --- a/tests/phpunit/TestPacket.php +++ b/tests/phpunit/TestPacket.php @@ -1,23 +1,14 @@ * - * ____ _ _ __ __ _ __ __ ____ - * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ - * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | - * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ - * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| - * - * This program is free software: you can redistribute it and/or modify + * BedrockProtocol is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * - * @author PocketMine Team - * @link http://www.pocketmine.net/ - * - * -*/ + */ declare(strict_types=1);