<commit_before><?php namespace spec\NukaCode\Menu;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class DropDownSpec extends ObjectBehavior {

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

    function it_is_initializable()
    {
        $this->shouldHaveType('NukaCode\Menu\DropDown');
    }

    function it_checks_is_dropdown()
    {
        $this->isDropDown()->shouldReturn(true);
    }

    function it_checks_has_links_method()
    {
        $this->links[] = 'one';

        $this->hasLinks()->shouldReturn(true);
    }

    function it_checks_has_links_method_no_links()
    {
        $this->hasLinks()->shouldReturn(false);
    }
}<commit_msg>Adding those wonderful unit testies<commit_after><?php namespace spec\NukaCode\Menu;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class DropDownSpec extends ObjectBehavior {

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

    function it_is_initializable()
    {
        $this->shouldHaveType('NukaCode\Menu\DropDown');
    }

    function it_checks_is_dropdown()
    {
        $this->isDropDown()->shouldReturn(true);
    }

    function it_checks_has_links_method()
    {
        $this->links[] = 'one';

        $this->hasLinks()->shouldReturn(true);
    }

    function it_checks_has_links_method_no_links()
    {
        $this->hasLinks()->shouldReturn(false);
    }
    
    function it_checks_active_parentage()
    {
        $this->activeParentage()->shouldReturn(true);
    }
    
    function it_disables_active_parentage()
    {
        $this->disableActiveParentage();
        
        $this->activeParentage()->shouldReturn(false);
    }
}
{'fraction_non_alphanumeric': 0.12849494348602022, 'fraction_numerical': 0.0, 'mean_word_length': 2.911627906976744, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, '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': '6020923', 'n_tokens_mistral': 543, 'n_tokens_neox': 519, 'n_words': 67}