Changeset 1120

Show
Ignore:
Timestamp:
12/06/07 15:01:29 (10 months ago)
Author:
mikey
Message:

replaced stubCacheException with stubRuntimeException

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/cache/stubCache.php

    r742 r1120  
    77 * @subpackage  util_cache 
    88 */ 
    9 stubClassLoader::load('net.stubbles.util.cache.stubCacheException', 
     9stubClassLoader::load('net.stubbles.lang.exceptions.stubRuntimeException', 
    1010                      'net.stubbles.util.cache.stubCacheContainer' 
    1111); 
     
    3131     * @param   string              $id 
    3232     * @return  stubCacheContainer 
    33      * @throws  stubCacheException 
    3433     */ 
    3534    public static function factory($id) 
     
    4039        } 
    4140         
    42         throw new stubCacheException('No container registered for id ' . $id); 
     41        throw new stubRuntimeException('No cache container registered for id ' . $id); 
    4342    } 
    4443 
  • trunk/src/test/php/net/stubbles/util/cache/stubCacheTestCase.php

    r741 r1120  
    2222    public function testNoContainer() 
    2323    { 
    24         $this->expectException('stubCacheException'); 
     24        $this->expectException('stubRuntimeException'); 
    2525        stubCache::factory('foo'); 
    2626    } 
     
    3939        $fooCache = stubCache::factory('foo'); 
    4040        $this->assertReference($fooCache, $mockContainer); 
    41         $this->expectException('stubCacheException'); 
     41        $this->expectException('stubRuntimeException'); 
    4242        stubCache::factory('bar'); 
    4343    }