PHP Classes

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

Recommend this page to a friend!
  Classes of Emmanuel Antico   eMapper   tests/eMapper/SQLite/Cache/APCTest.php   Download  
File: tests/eMapper/SQLite/Cache/APCTest.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: 9 years ago
Size: 525 bytes
 

Contents

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

use
eMapper\Cache\APCProvider;

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