handleCode() public method

public handleCode ( $input, string $name = '' ) : array
$input
$name string
return array
示例#1
0
 public function testNestedParenthesesCount()
 {
     $compiler = new Compiler();
     $code = $compiler->handleCode('b->c(a(d->e->f), g->h)');
     $this->assertSame(3, count($code));
 }
示例#2
0
 /**
  * @expectedException \ErrorException
  * @expectedExceptionCode 14
  */
 public function testMissingClosing()
 {
     $compiler = new Compiler();
     $compiler->handleCode('$a = [$b, c(d$e]');
 }