| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class BooleanReturnTest extends TestCase |
||
| 7 | { |
||
| 8 | private Cacheer $cache; |
||
| 9 | |||
| 10 | protected function setUp(): void |
||
| 11 | { |
||
| 12 | $this->cache = new Cacheer(); |
||
| 13 | $this->cache->setDriver()->useArrayDriver(); |
||
|
|
|||
| 14 | } |
||
| 15 | |||
| 16 | public function testHasReturnsBoolean() |
||
| 17 | { |
||
| 18 | $this->cache->putCache('bool_key', 'value'); |
||
| 19 | $this->assertTrue($this->cache->has('bool_key')); |
||
| 20 | $this->assertTrue($this->cache->isSuccess()); |
||
| 21 | |||
| 22 | $this->assertFalse($this->cache->has('unknown_key')); |
||
| 23 | $this->assertFalse($this->cache->isSuccess()); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testMutatingMethodsReturnBoolean() |
||
| 32 | } |
||
| 33 | } |
||
| 34 |