File: tests/eMapper/SQLite/Cache/MemcacheTest.php

Recommend this page to a friend!
  Classes of Emmanuel Antico  >  eMapper  >  tests/eMapper/SQLite/Cache/MemcacheTest.php  >  Download  
File: tests/eMapper/SQLite/Cache/MemcacheTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: eMapper
Database abstraction layer that maps data types
Author: By
Last change: Modified: Cache tests.
Date: 6 years ago
Size: 538 bytes
 

Contents

Class file image Download
<?php
namespace eMapper\SQLite\Cache;

use
eMapper\Cache\MemcacheProvider;

/**
 * Tests MemcacheProvider with SQLiteMapper class
 * @group sqlite
 * @group cache
 * @group memcache
 */
class MemcacheTest extends SQLiteCacheTest {
    protected function
setUp() {
        try {
           
$this->provider = new MemcacheProvider();
        }
        catch (\
RuntimeException $re) {
           
$this->markTestSkipped(
                   
'The Memcache extension is not available.'
           
);
        }
       
       
$this->mapper = $this->getMapper();
       
$this->mapper->setCacheProvider($this->provider);
    }
}
?>


For more information send a message to info at phpclasses dot org.