Symfony\Component\HttpFoundation\Tests\ResponseTest::testHasVary PHP Method

testHasVary() public method

public testHasVary ( )
    public function testHasVary()
    {
        $response = new Response();
        $this->assertFalse($response->hasVary());

        $response->setVary('User-Agent');
        $this->assertTrue($response->hasVary());
    }
ResponseTest