diff --git a/composer.json b/composer.json index 27bd3ebd1..4b0828e91 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/tests/Model/PageTest.php b/tests/Model/PageTest.php index 8a443fff2..29086264e 100644 --- a/tests/Model/PageTest.php +++ b/tests/Model/PageTest.php @@ -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([]); @@ -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(''); @@ -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);