| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function testCookies(): void |
||
| 21 | { |
||
| 22 | $c = new CookiesConfig([ |
||
| 23 | 'domain' => '.%s', |
||
| 24 | 'method' => CookiesConfig::COOKIE_ENCRYPT, |
||
| 25 | 'excluded' => ['PHPSESSID', 'csrf-token'] |
||
| 26 | |||
| 27 | ]); |
||
| 28 | |||
| 29 | $this->assertSame(CookiesConfig::COOKIE_ENCRYPT, $c->getProtectionMethod()); |
||
| 30 | $this->assertSame(['PHPSESSID', 'csrf-token'], $c->getExcludedCookies()); |
||
| 31 | } |
||
| 54 |