| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 47 | public function ttl_is_required(): void |
||
| 48 | { |
||
| 49 | $this->expectException(\LogicException::class); |
||
| 50 | $this->expectExceptionMessage(\sprintf('You must set a "TTL" for the throttle via "%s::every($ttl)"', ThrottleBuilder::class)); |
||
| 51 | |||
| 52 | (new ThrottleBuilder(new ThrottleFactory(new MemoryStore()), 'foo'))->allow(10)->create(); |
||
| 53 | } |
||
| 66 |