setUpRedis(); } protected function tearDown(): void { parent::tearDown(); $this->tearDownRedis(); } public function testItCanStoreInfinite() { Cache::store('redis')->clear(); $result = Cache::store('redis')->put('foo', INF); $this->assertTrue($result); $this->assertSame(INF, Cache::store('redis')->get('foo')); $result = Cache::store('redis')->put('bar', -INF); $this->assertTrue($result); $this->assertSame(-INF, Cache::store('redis')->get('bar')); } public function testItCanStoreNan() { Cache::store('redis')->clear(); $result = Cache::store('redis')->put('foo', NAN); $this->assertTrue($result); $this->assertNan(Cache::store('redis')->get('foo')); } }