publicfunctiontestAssertResponseHeaderSame() { $this->getResponseTester(newResponse())->assertResponseHeaderSame('Cache-Control', 'no-cache, private'); $this->expectException(AssertionFailedError::class); $this->expectExceptionMessage('Failed asserting that the Response has header "Cache-Control" with value "public".'); $this->getResponseTester(newResponse())->assertResponseHeaderSame('Cache-Control', 'public'); }