/** * {@override} */ protected function reset(Tokens $tokens) { $this->current = null; $this->result = array(); $this->stack = array(); $this->tokens = $tokens; $tokens->rewind(); }
/** * {@inheritDoc} */ protected function reset(Tokens $tokens) { $this->level = 0; $this->result = ''; $this->tokens = $tokens; $tokens->rewind(); }
/** * @depends testKey * @depends testNext */ public function testRewind() { $this->tokens->next(); $this->tokens->rewind(); $this->assertEquals(0, $this->tokens->key()); }