public function __construct(Parser $parser = null) { $this->parser = $parser ?: Parser::create(); }
/** * @test * @expectedException \JMS\Parser\SyntaxErrorException */ public function selectorShouldNotBeNested() { $parser = Parser::create(); $parser->parse('Article(1).Article(2)'); }