function it_provides_useful_information_about_iterations()
    {
        $this->next('one');
        $this->getIndex()->shouldBe(0);
        $this->getKey()->shouldBe('one');
        $this->isFirst()->shouldBe(true);
        $this->isLast()->shouldBe(false);

        $this->next('two');
        $this->getIndex()->shouldBe(1);
        $this->getKey()->shouldBe('two');
        $this->isFirst()->shouldBe(false);
        $this->isLast()->shouldBe(false);

        $this->next('three');
        $this->getIndex()->shouldBe(2);
        $this->getKey()->shouldBe('three');
        $this->isFirst()->shouldBe(false);
        $this->isLast()->shouldBe(true);
    }
function it_provides_useful_information_about_iterations()
    {
        $this->next('one');
        $this->getIndex()->shouldBe(0);
        $this->getKey()->shouldBe('one');
        $this->isFirst()->shouldBe(true);
        $this->isLast()->shouldBe(false);

        $this->next('two');
        $this->getIndex()->shouldBe(1);
        $this->getKey()->shouldBe('two');
        $this->isFirst()->shouldBe(false);
        $this->isLast()->shouldBe(false);

        $this->next('three');
        $this->getIndex()->shouldBe(2);
        $this->getKey()->shouldBe('three');
        $this->isFirst()->shouldBe(false);
        $this->isLast()->shouldBe(true);
    }
function it_provides_useful_information_about_iterations ( ) { $ this -> next ( 'one' ) ; $ this -> getIndex ( ) -> shouldBe ( 0 ) ; $ this -> getKey ( ) -> shouldBe ( 'one' ) ; $ this -> isFirst ( ) -> shouldBe ( true ) ; $ this -> isLast ( ) -> shouldBe ( false ) ; $ this -> next ( 'two' ) ; $ this -> getIndex ( ) -> shouldBe ( 1 ) ; $ this -> getKey ( ) -> shouldBe ( 'two' ) ; $ this -> isFirst ( ) -> shouldBe ( false ) ; $ this -> isLast ( ) -> shouldBe ( false ) ; $ this -> next ( 'three' ) ; $ this -> getIndex ( ) -> shouldBe ( 2 ) ; $ this -> getKey ( ) -> shouldBe ( 'three' ) ; $ this -> isFirst ( ) -> shouldBe ( false ) ; $ this -> isLast ( ) -> shouldBe ( true ) ; }
It provides useful information about iterations.
It provides useful information about iterations .