/**
  * @group ZF-11385
  * @dataProvider providerNestingDepthIsHandledProperly
  */
 public function testNestingDepthIsHandledProperlyWhenNestingDepthDoesNotExceedMaximum($xmlStringContents)
 {
     try {
         Zend_Json::$maxRecursionDepthAllowed = 25;
         $jsonString = Zend_Json::fromXml($xmlStringContents, true);
         $jsonArray = Zend_Json::decode($jsonString);
         $this->assertNotNull($jsonArray, "JSON decode result is NULL");
         $this->assertSame('A', $jsonArray['response']['message_type']['defaults']['close_rules']['after_responses']);
     } catch (Zend_Json_Exception $ex) {
         $this->fail('Zend_Json::fromXml does not implement recursion check properly');
     }
 }