From e1d32b340f693b6dea4ea1a9a2be90223493a5a8 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Fri, 12 Apr 2024 05:22:36 +0100 Subject: [PATCH] Fix formatting --- test/BarcodeTest.php | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/test/BarcodeTest.php b/test/BarcodeTest.php index 6827bda..e877a78 100644 --- a/test/BarcodeTest.php +++ b/test/BarcodeTest.php @@ -308,7 +308,10 @@ public function testGetSvg(): void $this->assertNotFalse($svg); $this->assertEquals('86e0362768e8b1b26032381232c0367f', md5($svg)); $headers = xdebug_get_headers(); - $this->assertEquals('Content-Disposition: inline; filename="86e0362768e8b1b26032381232c0367f.svg";', $headers[5]); + $this->assertEquals( + 'Content-Disposition: inline; filename="86e0362768e8b1b26032381232c0367f.svg";', + $headers[5] + ); // invalid filename ob_start(); @@ -317,7 +320,10 @@ public function testGetSvg(): void $this->assertNotFalse($svg); $this->assertEquals('86e0362768e8b1b26032381232c0367f', md5($svg)); $headers = xdebug_get_headers(); - $this->assertEquals('Content-Disposition: inline; filename="86e0362768e8b1b26032381232c0367f.svg";', $headers[5]); + $this->assertEquals( + 'Content-Disposition: inline; filename="86e0362768e8b1b26032381232c0367f.svg";', + $headers[5] + ); // valid filename ob_start(); @@ -326,7 +332,10 @@ public function testGetSvg(): void $this->assertNotFalse($svg); $this->assertEquals('86e0362768e8b1b26032381232c0367f', md5($svg)); $headers = xdebug_get_headers(); - $this->assertEquals('Content-Disposition: inline; filename="test_SVG_filename-001.svg";', $headers[5]); + $this->assertEquals( + 'Content-Disposition: inline; filename="test_SVG_filename-001.svg";', + $headers[5] + ); } public function testGetPng(): void @@ -347,7 +356,10 @@ public function testGetPng(): void $this->assertNotFalse($png); $this->assertEquals('PNG', substr($png, 1, 3)); $headers = xdebug_get_headers(); - $this->assertEquals('Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png";', $headers[5]); + $this->assertEquals( + 'Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png";', + $headers[5] + ); // invalid filename ob_start(); @@ -356,7 +368,10 @@ public function testGetPng(): void $this->assertNotFalse($png); $this->assertEquals('PNG', substr($png, 1, 3)); $headers = xdebug_get_headers(); - $this->assertEquals('Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png";', $headers[5]); + $this->assertEquals( + 'Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png";', + $headers[5] + ); // valid filename ob_start(); @@ -365,6 +380,9 @@ public function testGetPng(): void $this->assertNotFalse($png); $this->assertEquals('PNG', substr($png, 1, 3)); $headers = xdebug_get_headers(); - $this->assertEquals('Content-Disposition: inline; filename="test_PNG_filename-001.png";', $headers[5]); + $this->assertEquals( + 'Content-Disposition: inline; filename="test_PNG_filename-001.png";', + $headers[5] + ); } }