Ejemplo n.º 1
0
 public function testFind()
 {
     $token = $this->getTokenMock('token.name');
     $context = new Context();
     $context->push($token);
     $this->assertSame($token->id, $context->find('token.name'));
     $this->assertFalse($context->find('foo'));
 }
Ejemplo n.º 2
0
 protected function processStart(Context $context, Language $language, Result $result, TokenIterator $tokens)
 {
     $context->push($this);
     return true;
 }