public function testGetManager()
 {
     $class = MMySQLCacheManager::class;
     $this->assertTrue(MCacheFactoryImpl::getManager(new MCacheConfiguration(MCacheType::MYSQL, array('db' => new \PDO('mysql:host=localhost;dbname=test', 'root', ''), 'table' => ''))) instanceof $class);
     $class = MFileCacheManager::class;
     $this->assertTrue(MCacheFactoryImpl::getManager(new MCacheConfiguration(MCacheType::FILE, array('path' => '/tmp'))) instanceof $class);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->connection = new \PDO('mysql:host=localhost;dbname=test', 'root', '');
     $this->tableName = 'mcache';
     $this->cacheManager = MCacheFactoryImpl::getManager(new MCacheConfiguration(MCacheType::MYSQL, array('db' => $this->connection, 'table' => $this->tableName)));
 }
 protected function setUp()
 {
     parent::setUp();
     $this->path = '/tmp';
     $this->cacheManager = MCacheFactoryImpl::getManager(new MCacheConfiguration(MCacheType::FILE, array('path' => $this->path)));
 }
 protected function setUp()
 {
     parent::setUp();
     $this->cacheManager = MCacheFactoryImpl::getManager(new MCacheConfiguration(MCacheType::APC, array()));
 }