<commit_before><?php

namespace spec\PHPSpec2\Mocker;

use PHPSpec2\Specification;
use PHPSpec2\Stub\ArgumentsResolver;

class MockerFactory implements Specification
{
    function it_creates_a_Mockery_Mocker_by_default()
    {
        $this->object->mock('PHPSpec2\Specification')
            ->shouldReturnAnInstanceOf('PHPSpec2\Specification');
    }

    function it_can_mock_method_on_created_mock($resolver)
    {
        $mock = $this->object->mock('PHPSpec2\Specification');

        $mock->mockMethod('someMethid', array(), new ArgumentsResolver())
            ->shouldReturnAnInstanceOf('PHPSpec2\Mocker\Mockery\ExpectationProxy');
    }

    function it_can_be_created_with_an_alternative_mocker($mocker, $proxy)
    {
        $proxy->isAMockOf('PHPSpec2\Mocker\MockProxyInterface');
        $mocker->isAMockOf('PHPSpec2\Mocker\MockerInterface');
        $this->object->isAnInstanceOf('PHPSpec2\Mocker\MockerFactory', array($mocker));

        $mocker->mock('PHPSpec2\Specification')->willReturn($proxy);

        $this->object->mock('PHPSpec2\Specification')->shouldBeEqualTo($proxy);
    }

    function it_can_be_created_with_later_configured_mocker($mocker, $proxy)
    {
        $proxy->isAMockOf('PHPSpec2\Mocker\MockProxyInterface');
        $mocker->isAMockOf('PHPSpec2\Mocker\MockerInterface');

        $this->object->setMocker($mocker);

        $mocker->mock('PHPSpec2\Specification')->willReturn($proxy);

        $this->object->mock('PHPSpec2\Specification')->shouldBeEqualTo($proxy);
    }
}<commit_msg>removed broken spec<commit_after><?php

namespace spec\PHPSpec2\Mocker;

use PHPSpec2\Specification;
use PHPSpec2\Stub\ArgumentsResolver;

class MockerFactory implements Specification
{
    function it_creates_a_Mockery_Mocker_by_default()
    {
        $this->object->mock('PHPSpec2\Specification')
            ->shouldReturnAnInstanceOf('PHPSpec2\Specification');
    }

    function it_can_mock_method_on_created_mock($resolver)
    {
        $mock = $this->object->mock('PHPSpec2\Specification');

        $mock->mockMethod('someMethid', array(), new ArgumentsResolver())
            ->shouldReturnAnInstanceOf('PHPSpec2\Mocker\Mockery\ExpectationProxy');
    }
}
{'fraction_non_alphanumeric': 0.1343351548269581, 'fraction_numerical': 0.010473588342440802, 'mean_word_length': 4.2685851318944845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '4213959', 'n_tokens_mistral': 695, 'n_tokens_neox': 711, 'n_words': 67}