From a1978ca8cfeae8088c55dd62b77a3b4c7775b8fd Mon Sep 17 00:00:00 2001 From: bepsvpt <8221099+bepsvpt@users.noreply.github.com> Date: Mon, 16 Dec 2024 23:52:20 +0800 Subject: [PATCH] fix: lint --- tests/BlurHashTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/BlurHashTest.php b/tests/BlurHashTest.php index 31d3006..ecbfb1d 100644 --- a/tests/BlurHashTest.php +++ b/tests/BlurHashTest.php @@ -31,7 +31,7 @@ protected function file(string $name): string return __DIR__.'/images/'.$name; } - public function testGdDriverEncode(): void + public function test_gd_driver_encode(): void { $path = $this->file('01.jpg'); @@ -61,7 +61,7 @@ public function testGdDriverEncode(): void ); } - public function testImagickDriverEncode(): void + public function test_imagick_driver_encode(): void { $path = $this->file('01.jpg'); @@ -93,7 +93,7 @@ public function testImagickDriverEncode(): void $this->assertSame($hash, $blurhash->encode($path)); } - public function testPhpVipsDriverEncode(): void + public function test_php_vips_driver_encode(): void { $path = $this->file('01.jpg'); @@ -128,7 +128,7 @@ public function testPhpVipsDriverEncode(): void ); } - public function testDifferentFormatsEncode(): void + public function test_different_formats_encode(): void { $hash = new BlurHash('gd'); @@ -176,7 +176,7 @@ public function testDifferentFormatsEncode(): void /** * @requires PHP >= 8.1.0 */ - public function testAvifFormatEncode(): void + public function test_avif_format_encode(): void { $hash = new BlurHash('gd'); @@ -186,7 +186,7 @@ public function testAvifFormatEncode(): void ); } - public function testGdDriverDecode(): void + public function test_gd_driver_decode(): void { $image = (new BlurHash('gd'))->decode( 'rDBDsRV@00xu_NIU4nx]?b.8WBDit7-;RjIUxaxux]WBM{kCjZj[s;WBRjRPjZofjZkBkCaxjZWB%gkCM{jZt7WCWBj?j[Mxj[kCa|kCoLj[WBR*', @@ -207,7 +207,7 @@ public function testGdDriverDecode(): void $this->assertSame(md5_file($this->file('10.jpg')), md5_file($path)); } - public function testImagickDriverDecode(): void + public function test_imagick_driver_decode(): void { $image = (new BlurHash('imagick'))->decode( 'rDBDsRV@00xu_NIU4nx]?b.8WBDit7-;RjIUxaxux]WBM{kCjZj[s;WBRjRPjZofjZkBkCaxjZWB%gkCM{jZt7WCWBj?j[Mxj[kCa|kCoLj[WBR*', @@ -228,7 +228,7 @@ public function testImagickDriverDecode(): void $this->assertSame('305ada74d76f6ed94ad743659abe2a29', md5_file($path)); } - public function testPhpVipsDriverDecode(): void + public function test_php_vips_driver_decode(): void { $image = (new BlurHash('php-vips'))->decode( 'rDBDsRV@00xu_NIU4nx]?b.8WBDit7-;RjIUxaxux]WBM{kCjZj[s;WBRjRPjZofjZkBkCaxjZWB%gkCM{jZt7WCWBj?j[Mxj[kCa|kCoLj[WBR*', @@ -252,7 +252,7 @@ public function testPhpVipsDriverDecode(): void ); } - public function testLaravelFacade(): void + public function test_laravel_facade(): void { $this->assertSame( 'L8Am^~jG00xu_NR*4TtQ.8R%IUkD',