public function testAgeCorrectsDeltaSecondsOverflow() { $ageHeader = new Age(); $ageHeader->setDeltaSeconds(PHP_INT_MAX); $this->assertEquals('Age: 2147483648', $ageHeader->toString()); }
public function testAgeToStringReturnsHeaderFormattedString() { $ageHeader = Age::fromString('Age: 12'); $this->assertEquals('Age: 12', $ageHeader->toString()); }