/**
  * @dataProvider provideTokenize
  */
 public function testTokenize($expected, $expectedProcess, $process, $toProcess, $allowsSymbolsBeforeOpen = true, $open = '(', $close = ')')
 {
     $symbol = new NestedSymbol($open, $close, null, false, $allowsSymbolsBeforeOpen);
     $result = $symbol->tokenize($process, $toProcess);
     $this->assertEquals($expected, $result);
     $this->assertEquals($expectedProcess, $process);
 }
 /**
  * Constructs a new nested symbol
  * @return null
  */
 public function __construct()
 {
     parent::__construct(self::NESTED_OPEN, self::NESTED_CLOSE, null, false);
 }
 /**
  * Constructs a new condition tokenizer
  * @return null
  */
 public function __construct()
 {
     parent::__construct(MathematicalExpression::NESTED_OPEN, MathematicalExpression::NESTED_CLOSE, null, false, false);
 }
 /**
  * Constructs a new condition tokenizer
  * @return null
  */
 public function __construct(Tokenizer $tokenizer)
 {
     parent::__construct(self::CONDITION_OPEN, self::CONDITION_CLOSE, $tokenizer);
 }