spec\LdapTools\Ldif\Entry\LdifEntryModRdnSpec::it_should_add_a_comment PHP Метод

it_should_add_a_comment() публичный Метод

    function it_should_add_a_comment()
    {
        $this->addComment('test')->shouldReturnAnInstanceOf('LdapTools\\Ldif\\Entry\\LdifEntryModRdn');
        $this->getComments()->shouldHaveCount(1);
        $this->addComment('foo', 'bar');
        $this->getComments()->shouldHaveCount(3);
        $this->getComments()->shouldBeEqualTo(['test', 'foo', 'bar']);
    }