withRecursionDepth() public method

Recursion depth level, null means infinite, any integer greater than or equal to zero sets value (number of recursion levels). Zero disables recursion. Defaults to null.
public withRecursionDepth ( integer | null $depth ) : self
$depth integer | null
return self
Example #1
0
 public function testExceptionOnInvalidRecursionDepth()
 {
     $processor = new Processor(new RegularParser(), new HandlerContainer());
     $this->setExpectedException('InvalidArgumentException');
     $processor->withRecursionDepth(new \stdClass());
 }