Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class MemcachedRateLimiterTest extends Unit |
||
8 | { |
||
9 | /** |
||
10 | * @dataProvider dataSetUp |
||
11 | */ |
||
12 | public function testSetUp(array $config): void |
||
13 | { |
||
14 | $limiter = new MemcachedRateLimiter($config); |
||
15 | foreach ($config as $name => $val) { |
||
16 | $this->assertSame($val, $limiter->$name); |
||
17 | } |
||
18 | } |
||
19 | |||
20 | public function dataSetUp(): array |
||
25 | ]; |
||
26 | } |
||
28 |