예제 #1
0
 public function testRateInfoSetters()
 {
     $rateInfo = new RateLimitInfo();
     $rateInfo->setLimit(1234);
     $this->assertEquals(1234, $rateInfo->getLimit());
     $rateInfo->setCalls(5);
     $this->assertEquals(5, $rateInfo->getCalls());
     $rateInfo->setResetTimestamp(100000);
     $this->assertEquals(100000, $rateInfo->getResetTimestamp());
 }