예제 #1
0
 /**
  * @depends testDiLog
  */
 public function testDiCache()
 {
     try {
         $cachePoolAdapter = ['name' => 'redis', 'options' => ['host' => REDIS_HOST, 'port' => REDIS_PORT]];
         $cachePool = new Pool(['adapter' => $cachePoolAdapter]);
         Di::getInstance()->setCache($cachePool);
     } catch (\Exception $e) {
         $this->assertTrue(false, "Error setting cache on Di");
     }
     $this->assertTrue(true);
 }