<commit_before><?php namespace MetalMatze;

use MetalMatze\Html\HtmlBuilderCachebusting;
use Mockery;
use PHPUnit_Framework_TestCase;

class HtmlBulderCachebustingUnitTests extends PHPUnit_Framework_TestCase
{
    private $url;
    private $filesystem;

    public function setUp()
    {
        $this->url = Mockery::mock('Illuminate\Routing\UrlGenerator');
        $this->filesystem = Mockery::mock('Illuminate\Filesystem\Filesystem');
        $this->md5 = Mockery::mock('MetalMatze\MD5\MD5');
    }

    public function tearDown()
    {
        Mockery::close();
    }

    private function htmlBuilderCachebusting()
    {
        return new HtmlBuilderCachebusting($this->url, $this->filesystem, $this->md5);
    }

    public function testStyleBustFileNonExisting()
    {
        $this->filesystem->shouldReceive('exists')->once()->with('main.css')->andReturn(false);<commit_msg>set $md5 private in HtmlBuilderCachebustingTest<commit_after><?php namespace MetalMatze;

use MetalMatze\Html\HtmlBuilderCachebusting;
use Mockery;
use PHPUnit_Framework_TestCase;

class HtmlBulderCachebustingUnitTests extends PHPUnit_Framework_TestCase
{
    private $url;
    private $filesystem;
    private $md5;

    public function setUp()
    {
        $this->url = Mockery::mock('Illuminate\Routing\UrlGenerator');
        $this->filesystem = Mockery::mock('Illuminate\Filesystem\Filesystem');
        $this->md5 = Mockery::mock('MetalMatze\MD5\MD5');
    }

    public function tearDown()
    {
        Mockery::close();
    }

    private function htmlBuilderCachebusting()
    {
        return new HtmlBuilderCachebusting($this->url, $this->filesystem, $this->md5);
    }

    public function testStyleBustFileNonExisting()
    {
        $this->filesystem->shouldReceive('exists')->once()->with('main.css')->andReturn(false);
{'fraction_non_alphanumeric': 0.12692307692307692, 'fraction_numerical': 0.005494505494505495, 'mean_word_length': 3.9618528610354224, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '6955735', 'n_tokens_mistral': 557, 'n_tokens_neox': 558, 'n_words': 89}