We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16a3f0c commit f39d2aeCopy full SHA for f39d2ae
src/Symfony/Component/RateLimiter/Tests/Strategy/SlidingWindowTest.php
@@ -62,4 +62,14 @@ public function testLongInterval()
62
sleep(30);
63
$this->assertSame(0, $new->getHitCount());
64
}
65
+
66
+ public function testLongIntervalCreate()
67
+ {
68
+ ClockMock::register(SlidingWindow::class);
69
+ $window = new SlidingWindow('foo', 60);
70
71
+ sleep(300);
72
+ $new = SlidingWindow::createFromPreviousWindow($window, 60);
73
+ $this->assertFalse($new->isExpired());
74
+ }
75
0 commit comments