spec/im/Primitive/Container/ContainerSpec.php
protected function lengthCheck($length = null)
    {
        if ( ! is_null($length))
        {
            $this->all()->shouldHaveCount($length);
            $this->length->shouldBe($length);
        }
        else
        {
            $this->all()->shouldHaveCount(count($this->initializer));
            $this->length->shouldBe(count($this->initializer));
        }
    }
protected function lengthCheck($length = null)
    {
        if ( ! is_null($length))
        {
            $this->all()->shouldHaveCount($length);
            $this->length->shouldBe($length);
        }
        else
        {
            $this->all()->shouldHaveCount(count($this->initializer));
            $this->length->shouldBe(count($this->initializer));
        }
    }
Checks length equal to $this->initializer

@param null $length