getSharedMaximumAge() public method

This method returns the value from the "s-maxage" directive in the Cache-Control header.
public getSharedMaximumAge ( ) : integer
return integer The maximum age in seconds, or NULL if none has been defined
 /**
  * RFC 2616 / 14.9.4
  *
  * @test
  */
 public function setAndGetSharedMaximumAgeSetsAndReturnsTheSMaxAgeCacheControlDirective()
 {
     $response = new Response();
     $response->setNow(new \DateTime());
     $response->setSharedMaximumAge(60);
     $this->assertEquals('s-maxage=60', $response->getHeader('Cache-Control'));
     $this->assertSame(60, $response->getSharedMaximumAge());
 }