Skip to content

Commit

Permalink
use getstring
Browse files Browse the repository at this point in the history
Signed-off-by: nabim777 <[email protected]>
  • Loading branch information
nabim777 committed Oct 22, 2024
1 parent a10fd73 commit f8233f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/acceptance/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,11 @@ public function theHTTPStatusCodeShouldBe(
* @throws JsonException
*/
private function getJSONSchema(PyStringNode $schemaString) {
$schemaRawString = $schemaString->getRaw();
$schemaRawString = $schemaString->__toString();
print_r("getRaw schemaRawString\n");
print_r($schemaRawString);
$schemaRawString = $this->replaceInlineCodes($schemaRawString);
print_r("replaceInlineCodes schemaRawString\n");
$schemaRawString = preg_replace('/(?<!\\\)\\\/', '\\\\', $schemaRawString);
print_r($schemaRawString);
$schema = \json_decode($schemaRawString, false, 512, JSON_THROW_ON_ERROR);
echo("-------final Schema----\n");
Expand Down

0 comments on commit f8233f3

Please sign in to comment.