function testGifIsConvertedToPNGInCacheFileName() { $path = dirname(__FILE__) . '/images/google.gif'; $url = str_replace(WP_CONTENT_DIR, WP_CONTENT_URL . '/', $path); $image = new WP_Thumb(); $image->setFilePath($path); $this->assertFalse($image->errored()); $this->assertEquals(end(explode('.', $image->getCacheFileName())), 'png'); }