| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function testGetKey() { |
||
| 27 | |||
| 28 | $instance = new CacheKeyProvider(); |
||
| 29 | $instance->setCachePrefix( 'foo' ); |
||
| 30 | |||
| 31 | $this->assertContains( |
||
| 32 | 'foo', |
||
| 33 | $instance->getCacheKeyForCitationReference( 'abc' ) |
||
| 34 | ); |
||
| 35 | |||
| 36 | $this->assertContains( |
||
| 37 | ':ref:', |
||
| 38 | $instance->getCacheKeyForCitationReference( 123 ) |
||
| 39 | ); |
||
| 40 | |||
| 41 | $this->assertContains( |
||
| 42 | 'foo', |
||
| 43 | $instance->getCacheKeyForReferenceList( 'def' ) |
||
| 44 | ); |
||
| 45 | |||
| 46 | $this->assertContains( |
||
| 47 | ':reflist:', |
||
| 48 | $instance->getCacheKeyForReferenceList( 456 ) |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 53 |