function testFileURLWithDotInPath() { $path = 'http://google.com/logo~foo.png'; $image = new WP_Thumb(); $image->setFilePath($path); $this->assertFalse($image->errored()); $this->assertContains(home_url(), $image->getCacheFileURL()); $this->assertNotContains('.', str_replace(array(home_url(), '.' . $image->getFileExtension()), array('', ''), $image->getCacheFileURL())); }