<commit_before><?php namespace Spec\Ron;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class ClassBuilderSpec extends ObjectBehavior {

    function let()
    {
        $this->beConstructedWith('foo');
    }

    function it_is_initializable()
    {
        $this->shouldHaveType('Ron\ClassBuilder');
    }

    function it_sets_and_returns_the_class_name()
    {
        $this->shouldThrow($e = 'InvalidArgumentException')->duringSetName(null);

        $this->shouldNotThrow($e)->duringSetName($name = 'bar');

        $this->getName()->shouldBeEqualTo($name);
    }

    function it_builds_the_class_declaration()
    {
        $this->build()->shouldReturn('class foo {  }');
    }

    function it_implements_the_interface()
    {
        $this->implement('bar');

        $this->build()->shouldReturn('class foo implements bar {  }');
    }

}
<commit_msg>add 1 more test case<commit_after><?php namespace Spec\Ron;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class ClassBuilderSpec extends ObjectBehavior {

    function let()
    {
        $this->beConstructedWith('foo');
    }

    function it_is_initializable()
    {
        $this->shouldHaveType('Ron\ClassBuilder');
    }

    function it_sets_and_returns_the_class_name()
    {
        $this->shouldThrow($e = 'InvalidArgumentException')->duringSetName(null);

        $this->shouldNotThrow($e)->duringSetName($name = 'bar');

        $this->getName()->shouldBeEqualTo($name);
    }

    function it_builds_the_class_declaration()
    {
        $this->build()->shouldReturn('class foo {  }');
    }

    function it_implements_the_interface()
    {
        $this->implement('bar');

        $this->build()->shouldReturn('class foo implements bar {  }');

        $this->implement('baz');

        $this->build()->shouldReturn('class foo implements bar, baz {  }');
    }

}

{'fraction_non_alphanumeric': 0.1483279395900755, 'fraction_numerical': 0.0005393743257820927, 'mean_word_length': 3.131403118040089, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, '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': '2346918', 'n_tokens_mistral': 579, 'n_tokens_neox': 555, 'n_words': 80}