function test_replace_src_with_single_global_param()
 {
     global $imgix_options;
     $imgix_options = array('cdn_link' => "https://assets.imgix.net", 'auto_format' => true);
     $result = replace_src(home_url('flower.jpg'), 'thumbnail');
     $this->assertEquals('https://assets.imgix.net/flower.jpg?fit=crop&w=150&h=150&auto=format', $result);
 }
function no_image_downsize($return, $id, $size)
{
    $url = wp_get_attachment_url($id);
    $new_url = replace_src($url, $size);
    $size_info = get_size_info($size);
    return array($new_url, $size_info['width'], $size_info['height'], true);
}