<commit_before><?php


namespace Enl\Flysystem\Cloudinary\Test\Plugin;


use Enl\Flysystem\Cloudinary\CloudinaryAdapter;
use Enl\Flysystem\Cloudinary\Plugin\GetVersionedUrl;
use League\Flysystem\Filesystem;
use PHPUnit\Framework\TestCase;

class GetVersionedUrlTest extends TestCase
{
    public function testPassesVersionToUrl()
    {
        list ($filesystem, $facade) = $this->mockFacade();
        $version = time();
        $options = ['version' => $version];
        $facade->url('test.jpg', $options)->willReturn("http://cloudinary.url/v{$version}/test");

        $content = $filesystem->getVersionedUrl('test.jpg', $options);
        $this->assertEquals("http://cloudinary.url/v{$version}/test", $content);
    }

    public function resourceResponseProvider()
    {
        return [
            [['version' => $version = time()], $version],
            [[], 1],
        ];
    }<commit_msg>oh, line after namespace was actually needed in the GetVersionedUrlTest file<commit_after><?php

namespace Enl\Flysystem\Cloudinary\Test\Plugin;

use Enl\Flysystem\Cloudinary\CloudinaryAdapter;
use Enl\Flysystem\Cloudinary\Plugin\GetVersionedUrl;
use League\Flysystem\Filesystem;
use PHPUnit\Framework\TestCase;

class GetVersionedUrlTest extends TestCase
{
    public function testPassesVersionToUrl()
    {
        list ($filesystem, $facade) = $this->mockFacade();
        $version = time();
        $options = ['version' => $version];
        $facade->url('test.jpg', $options)->willReturn("http://cloudinary.url/v{$version}/test");

        $content = $filesystem->getVersionedUrl('test.jpg', $options);
        $this->assertEquals("http://cloudinary.url/v{$version}/test", $content);
    }

    public function resourceResponseProvider()
    {
        return [
            [['version' => $version = time()], $version],
            [[], 1],
        ];
    }
{'fraction_non_alphanumeric': 0.15405260332796564, 'fraction_numerical': 0.0010735373054213634, 'mean_word_length': 3.3858823529411763, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6943503', 'n_tokens_mistral': 560, 'n_tokens_neox': 544, 'n_words': 96}