function testFileWithPathNoExtension() { $path = dirname(__FILE__) . '/images/google'; $image = new WP_Thumb(); $image->setFilePath($path); $this->assertFalse($image->errored()); $this->assertContains(WP_CONTENT_DIR, $image->getCacheFileDirectory()); $this->assertEquals('jpg', $image->getFileExtension()); }