示例#1
0
 /**
  * {@override}
  */
 protected function reset(Tokens $tokens)
 {
     $this->current = null;
     $this->result = array();
     $this->stack = array();
     $this->tokens = $tokens;
     $tokens->rewind();
 }
示例#2
0
 /**
  * {@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());
 }