<commit_before><?php
/**
 * User: jg
 * Date: 04/02/17
 * Time: 18:21
 */


use ByJG\Cache\Psr\CachePool;


class CachePoolTest extends PHPUnit_Framework_TestCase
{

    protected function setUp()
    {

    }

    protected function tearDown()
    {

    }

    public function CachePoolProvider()
    {
        // $memcachedServer = ['192.168.1.181:11211'];
        $memcachedServer = ['127.0.0.1:11211'];

        return [
            [
                new CachePool(new \ByJG\Cache\Engine\ArrayCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\FileSystemCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\ShmopCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\SessionCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\NoCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\MemcachedEngine($memcachedServer))
            ]
        ];
    }

    /**
     * @dataProvider CachePoolProvider
     * @param CachePool $object<commit_msg>Changed host name for test<commit_after><?php
/**
 * User: jg
 * Date: 04/02/17
 * Time: 18:21
 */


use ByJG\Cache\Psr\CachePool;


class CachePoolTest extends PHPUnit_Framework_TestCase
{

    protected function setUp()
    {

    }

    protected function tearDown()
    {

    }

    public function CachePoolProvider()
    {
        $memcachedServer = ['memcached-container:11211'];

        return [
            [
                new CachePool(new \ByJG\Cache\Engine\ArrayCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\FileSystemCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\ShmopCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\SessionCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\NoCacheEngine())
            ],
            [
                new CachePool(new \ByJG\Cache\Engine\MemcachedEngine($memcachedServer))
            ]
        ];
    }

    /**
     * @dataProvider CachePoolProvider
     * @param CachePool $object
{'fraction_non_alphanumeric': 0.11280487804878049, 'fraction_numerical': 0.02221254355400697, 'mean_word_length': 1.5465631929046564, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5489740', 'n_tokens_mistral': 713, 'n_tokens_neox': 653, 'n_words': 101}