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