As per nacin, the redefining of Cache::create() as static broke a bunch of stuff when subclassing. This should fix that.
To try and fix compatibility issues, add Cache::get_handler() This is now called instead of Cache::create(), *except* if the cache handler is registered via the legacy method.
Throw a E_USER_DEPRECATED error on old cache method
SimplePie will use get_handler() if the class is registered via the registry, or create() if created via set_cache_class(). For new cache handlers, they should be using the registry so that the class isn't marked as legacy.
Add tests for Cache classes
This should ensure that the correct methods are called.
Merge branch 'master' into cache-backwards-compat
Ignore E_NOTICE too
Apparently, this throws a notice, not a deprecated error. Who knew.
Add CacheTest to AllTests
Rather than changing error_reporting, just suppress
Hopefully this should fix tests on 5.4
Unfortunately, Travis is having some problems with their 5.2 builder, so it's not passing there. Can anyone confirm the tests pass on 5.2?
Also fixed on one-dot-three: 9aa3385, f00f19c, 8b7ffd6, c2915d2, aafb99d, d029efb, e4920d1,