Changeset 1120
- Timestamp:
- 12/06/07 15:01:29 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/util/cache/stubCache.php
r742 r1120 7 7 * @subpackage util_cache 8 8 */ 9 stubClassLoader::load('net.stubbles. util.cache.stubCacheException',9 stubClassLoader::load('net.stubbles.lang.exceptions.stubRuntimeException', 10 10 'net.stubbles.util.cache.stubCacheContainer' 11 11 ); … … 31 31 * @param string $id 32 32 * @return stubCacheContainer 33 * @throws stubCacheException34 33 */ 35 34 public static function factory($id) … … 40 39 } 41 40 42 throw new stub CacheException('Nocontainer registered for id ' . $id);41 throw new stubRuntimeException('No cache container registered for id ' . $id); 43 42 } 44 43 trunk/src/test/php/net/stubbles/util/cache/stubCacheTestCase.php
r741 r1120 22 22 public function testNoContainer() 23 23 { 24 $this->expectException('stub CacheException');24 $this->expectException('stubRuntimeException'); 25 25 stubCache::factory('foo'); 26 26 } … … 39 39 $fooCache = stubCache::factory('foo'); 40 40 $this->assertReference($fooCache, $mockContainer); 41 $this->expectException('stub CacheException');41 $this->expectException('stubRuntimeException'); 42 42 stubCache::factory('bar'); 43 43 }
