<commit_before><?php

namespace LizardsAndPumpkins\DataPool\KeyValue\Memcached;

use LizardsAndPumpkins\DataPool\KeyValue\Exception\KeyNotFoundException;

/**
 * @covers  \LizardsAndPumpkins\DataPool\KeyValue\Memcached\MemcachedKeyValueStore
 */
class MemcachedKeyValueStoreTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var MemcachedKeyValueStore
     */
    private $store;

    /**
     * @var \Memcached|\PHPUnit_Framework_MockObject_MockObject
     */
    private $mockClient;

    public function setUp()
    {
        $this->mockClient = $this->getMockBuilder(\Memcached::class)
            ->setMethods(['get', 'set', 'setMulti', 'getMulti', 'getResultCode'])
            ->getMock();
        $this->store = new MemcachedKeyValueStore($this->mockClient);
    }

    public function testSettingValueIsDelegatedToClient()
    {<commit_msg>Issue #4: Remove obsolete mock methods declaration<commit_after><?php

namespace LizardsAndPumpkins\DataPool\KeyValue\Memcached;

use LizardsAndPumpkins\DataPool\KeyValue\Exception\KeyNotFoundException;

/**
 * @covers  \LizardsAndPumpkins\DataPool\KeyValue\Memcached\MemcachedKeyValueStore
 */
class MemcachedKeyValueStoreTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var MemcachedKeyValueStore
     */
    private $store;

    /**
     * @var \Memcached|\PHPUnit_Framework_MockObject_MockObject
     */
    private $mockClient;

    public function setUp()
    {
        $this->mockClient = $this->getMock(\Memcached::class, [], [], '', false);
        $this->store = new MemcachedKeyValueStore($this->mockClient);
    }

    public function testSettingValueIsDelegatedToClient()
    {
{'fraction_non_alphanumeric': 0.11707905853952927, 'fraction_numerical': 0.0006035003017501509, 'mean_word_length': 3.8057971014492753, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5388750', 'n_tokens_mistral': 501, 'n_tokens_neox': 492, 'n_words': 73}