Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored and github-actions[bot] committed Nov 13, 2024
1 parent f53c9b1 commit cb9bd75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"masterminds/html5": "^2.7",
"matthiasnoback/symfony-dependency-injection-test": "^4.1.1 || ^5.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpdoc-parser": "^1.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.3",
Expand Down
6 changes: 3 additions & 3 deletions tests/Model/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testHeader(): void
static::assertSame($page->getHeaders(), $expectedHeaders);

$page->setHeaders(['Cache-Control' => 'no-cache']);
static::assertSame($page->getRawHeaders(), 'Cache-Control: no-cache');
static::assertSame('Cache-Control: no-cache', $page->getRawHeaders());
static::assertSame($page->getHeaders(), ['Cache-Control' => 'no-cache']);

$page->setHeaders([]);
Expand All @@ -83,7 +83,7 @@ public function testHeader(): void
static::assertSame($page->getHeaders(), $expectedHeaders);

$page->setRawHeaders('Cache-Control: no-cache');
static::assertSame($page->getRawHeaders(), 'Cache-Control: no-cache');
static::assertSame('Cache-Control: no-cache', $page->getRawHeaders());
static::assertSame($page->getHeaders(), ['Cache-Control' => 'no-cache']);

$page->setRawHeaders('');
Expand All @@ -92,7 +92,7 @@ public function testHeader(): void

$page = new Page();
$page->addHeader('Cache-Control', 'no-cache');
static::assertSame($page->getRawHeaders(), 'Cache-Control: no-cache');
static::assertSame('Cache-Control: no-cache', $page->getRawHeaders());
static::assertSame($page->getHeaders(), ['Cache-Control' => 'no-cache']);

$page->setRawHeaders($expectedStringHeaders);
Expand Down

0 comments on commit cb9bd75

Please sign in to comment.