function testResizeNamed()
{
add_image_size('timber-testResizeNamed', $width = 600, $height = 400, $crop = true);
$data = array();
$data['size'] = 'timber-testResizeNamed';
$upload_dir = wp_upload_dir();
self::copyTestImage();
$url = $upload_dir['url'] . '/arch.jpg';
$data['test_image'] = $url;
Timber::compile('assets/image-resize-named.twig', $data);
$resized_path = $upload_dir['path'] . '/arch-' . $width . 'x' . $height . '-c-default.jpg';
$this->assertFileExists($resized_path);
//Now make sure it doesn't regenerate
$old_time = filemtime($resized_path);
sleep(1);
Timber::compile('assets/image-resize-named.twig', $data);
$new_time = filemtime($resized_path);
$this->assertEquals($old_time, $new_time);
}