Skip to content

Commit 1786e62

Browse files
committed
Adjust test
1 parent b407204 commit 1786e62

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/BarcodeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ public function testGetPng(): void
362362
$this->assertNotFalse($png);
363363
$this->assertEquals('PNG', substr($png, 1, 3));
364364
$headers = xdebug_get_headers();
365-
$this->assertEquals(
366-
'Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png";',
365+
$this->assertStringContainsString(
366+
'Content-Disposition: inline; filename="',
367367
$headers[5]
368368
);
369369

@@ -374,8 +374,8 @@ public function testGetPng(): void
374374
$this->assertNotFalse($png);
375375
$this->assertEquals('PNG', substr($png, 1, 3));
376376
$headers = xdebug_get_headers();
377-
$this->assertEquals(
378-
'Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png";',
377+
$this->assertStringContainsString(
378+
'Content-Disposition: inline; filename="',
379379
$headers[5]
380380
);
381381

0 commit comments

Comments
 (0)