function testImageArray()
{
$post_id = $this->factory->post->create();
$filename = self::copyTestImage('arch.jpg');
$wp_filetype = wp_check_filetype(basename($filename), null);
$attachment = array('post_mime_type' => $wp_filetype['type'], 'post_title' => preg_replace('/\\.[^.]+$/', '', basename($filename)), 'post_content' => '', 'post_status' => 'inherit');
$attach_id = wp_insert_attachment($attachment, $filename, $post_id);
$data = array('ID' => $attach_id);
$image = new Timber\Image($data);
$filename = explode('/', $image->file);
$filename = array_pop($filename);
$this->assertEquals('arch.jpg', $filename);
}