From d2c29f643058b4ea26aecd1541a1e60a5c15edee Mon Sep 17 00:00:00 2001 From: JakubKermes Date: Wed, 12 Jun 2024 13:24:17 +0200 Subject: [PATCH] Add ArrayHelper.php --- composer.json | 1 + src/Helpers/ArrayHelper.php | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/Helpers/ArrayHelper.php diff --git a/composer.json b/composer.json index c89bc63..75b839d 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ ], "require": { "php": "^8.3", + "ext-simplexml": "*", "behat/behat": "^3.14", "phpunit/phpunit": "^10.1|^11.0.1", "symfony/css-selector": "^6.2|^7.1", diff --git a/src/Helpers/ArrayHelper.php b/src/Helpers/ArrayHelper.php new file mode 100644 index 0000000..97e51d1 --- /dev/null +++ b/src/Helpers/ArrayHelper.php @@ -0,0 +1,33 @@ +"); + array_walk_recursive($table, [$xml, "addChild"]); + + return $xml->asXML(); + } +}