Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | 1 | public function testSlug() |
|
19 | { |
||
20 | 1 | $this->createPhileCore()->bootstrap(); |
|
21 | |||
22 | 1 | $psr16Cache = new Psr16Adapter('memstatic'); |
|
23 | 1 | $adapter = new PhileToPsr16CacheAdapter($psr16Cache); |
|
24 | |||
25 | 1 | $adapter->set("{}()\/:@", 'foo'); |
|
26 | 1 | $this->assertSame('foo', $adapter->get("{}()\/:@")); |
|
27 | |||
28 | 1 | $adapter->set('}foo', 'bar'); |
|
29 | 1 | $adapter->set('{foo', 'baz'); |
|
30 | 1 | $this->assertSame('bar', $adapter->get('}foo')); |
|
31 | } |
||
33 |