handleCode() публичный Метод

public handleCode ( $input, string $name = '' ) : array
$input
$name string
Результат 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]');
 }