public function testNestedParenthesesCount() { $compiler = new Compiler(); $code = $compiler->handleCode('b->c(a(d->e->f), g->h)'); $this->assertSame(3, count($code)); }
/** * @expectedException \ErrorException * @expectedExceptionCode 14 */ public function testMissingClosing() { $compiler = new Compiler(); $compiler->handleCode('$a = [$b, c(d$e]'); }