Development

Changeset 10504

You must first sign up to be able to contribute.

Changeset 10504

Show
Ignore:
Timestamp:
07/29/08 22:43:33 (4 months ago)
Author:
nicolas
Message:

fixes #3840 - fixed tests if SQLite is not installed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/test/functional/cacheTest.php

    r7729 r10504  
    405405 
    406406// test with sfSQLiteCache class 
    407 sfConfig::set('sf_factory_view_cache', 'sfSQLiteCache'); 
    408 sfConfig::set('sf_factory_view_cache_parameters', array('database' => sfConfig::get('sf_template_cache_dir').DIRECTORY_SEPARATOR.'cache.db')); 
    409 $b->launch(); 
     407if (extension_loaded('SQLite'))  
     408
     409  sfConfig::set('sf_factory_view_cache', 'sfSQLiteCache'); 
     410  sfConfig::set('sf_factory_view_cache_parameters', array('database' => sfConfig::get('sf_template_cache_dir').DIRECTORY_SEPARATOR.'cache.db')); 
     411  $b->launch(); 
     412
     413 
  • branches/1.1/test/unit/cache/sfSQLiteCacheTest.php

    r6362 r10504  
    1414$plan = 121; 
    1515$t = new lime_test($plan, new lime_output_color()); 
     16 
     17if (!extension_loaded('SQLite'))  
     18{ 
     19  $t->skip('SQLite extension not loaded, skipping tests', $plan); 
     20  exit(0); 
     21} 
    1622 
    1723try