Changeset 2306 for trunk/tests

Show
Ignore:
Timestamp:
10/07/2007 03:24:35 PM (15 months ago)
Author:
knut
Message:

minor correction in test setup for APC caching (skipping if not configured correctly: apc.enable_cli = 1)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/unit/Caching/TAPCCacheTest.php

    r1998 r2306  
    2121                                        self::markTestSkipped("'$runtimePath' is writable"); 
    2222                                } 
    23                                 $this->app = new TApplication($basePath); 
    24                                 self::$cache = new TAPCCache(); 
    25                                 self::$cache->init(null); 
     23                                try { 
     24                                        $this->app = new TApplication($basePath); 
     25                                        self::$cache = new TAPCCache(); 
     26                                        self::$cache->init(null); 
     27                                } catch(TConfigurationException $e) { 
     28                                        self::markTestSkipped($e->getMessage()); 
     29                                } 
     30                                 
    2631                } 
    2732        }