1..61
# ->initialize()
ok 1 - ->initialize() throws an sfInitializationException exception if you don't pass a cache_dir parameter
# ->set() ->get() ->has()
ok 2 - ->set() returns true if data are stored in cache
ok 3 - ->get() retrieves data form the cache
ok 4 - ->has() returns true if the cache exists
ok 5 - ->set() takes a lifetime as its third argument
ok 6 - ->get() returns the default value if cache has expired
ok 7 - ->has() returns true if the cache exists
ok 8 - ->get() returns null if the cache does not exist
ok 9 - ->get() takes a default value as its second argument
ok 10 - ->has() returns false if the cache does not exist
ok 11 - ->set() overrides previous data stored in the cache
ok 12 - ->set() retrieves the latest data form the cache
ok 13 - ->set() accepts a namespaced cache key
ok 14 - ->set() accepts a namespaced cache key
ok 15 - ->set() accepts a namespaced cache key
# ->clean()
ok 16 - ->clean() cleans old cache key if given the sfCache::OLD argument
ok 17 - ->clean() cleans old cache key if given the sfCache::OLD argument
ok 18 - ->clean() cleans all cache key if given the sfCache::ALL argument
ok 19 - ->clean() cleans all cache key if given the sfCache::ALL argument
ok 20 - ->clean() cleans all cache key if given no argument
ok 21 - ->clean() cleans all cache key if given no argument
# ->remove()
ok 22 - ->remove() takes a cache key as its first argument
ok 23 - ->remove() takes a cache key as its first argument
ok 24 - ->remove() takes a cache key as its first argument
# ->removePattern()
# *:bar:foo
ok 25 - ->removePattern() takes a pattern as its first argument
ok 26 - ->removePattern() takes a pattern as its first argument
ok 27 - ->removePattern() takes a pattern as its first argument
ok 28 - ->removePattern() takes a pattern as its first argument
# foo:bar:*
ok 29 - ->removePattern() takes a pattern as its first argument
ok 30 - ->removePattern() takes a pattern as its first argument
ok 31 - ->removePattern() takes a pattern as its first argument
ok 32 - ->removePattern() takes a pattern as its first argument
# foo:**:foo
ok 33 - ->removePattern() takes a pattern as its first argument
ok 34 - ->removePattern() takes a pattern as its first argument
ok 35 - ->removePattern() takes a pattern as its first argument
ok 36 - ->removePattern() takes a pattern as its first argument
# foo:bar:**
ok 37 - ->removePattern() takes a pattern as its first argument
ok 38 - ->removePattern() takes a pattern as its first argument
ok 39 - ->removePattern() takes a pattern as its first argument
ok 40 - ->removePattern() takes a pattern as its first argument
# **:bar
ok 41 - ->removePattern() takes a pattern as its first argument
ok 42 - ->removePattern() takes a pattern as its first argument
ok 43 - ->removePattern() takes a pattern as its first argument
ok 44 - ->removePattern() takes a pattern as its first argument
# **
ok 45 - ->removePattern() takes a pattern as its first argument
ok 46 - ->removePattern() takes a pattern as its first argument
ok 47 - ->removePattern() takes a pattern as its first argument
ok 48 - ->removePattern() takes a pattern as its first argument
# ->getTimeout()
ok 49 - ->getTimeout() returns the timeout time for a given cache key
ok 50 - ->getTimeout() returns the timeout time for a given cache key
ok 51 - ->getTimeout() returns the timeout time for a given cache key
ok 52 - ->getTimeout() returns the timeout time for a given cache key
ok 53 - ->getTimeout() returns the timeout time for a given cache key
ok 54 - ->getTimeout() returns 0 if the cache key does not exist
# ->getLastModified()
ok 55 - ->getLastModified() returns the last modified time for a given cache key
ok 56 - ->getLastModified() returns the last modified time for a given cache key
ok 57 - ->getLastModified() returns the last modified time for a given cache key
ok 58 - ->getLastModified() returns the last modified time for a given cache key
ok 59 - ->getLastModified() returns the last modified time for a given cache key
ok 60 - ->getLastModified() returns 0 if the cache key does not exist
# ->getMany()
ok 61 - ->getMany() gets many keys in one call
Looks like everything went fine.