From: Tim Otten Date: Thu, 28 Nov 2019 02:08:44 +0000 (-0800) Subject: Add api/v4/formatExamples/stylized.php X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=991be095f8c3d8987c7de90de632f5118a32f85f;p=civicrm-core.git Add api/v4/formatExamples/stylized.php --- diff --git a/ext/afform/mock/tests/phpunit/api/v4/formatExamples/stylized.php b/ext/afform/mock/tests/phpunit/api/v4/formatExamples/stylized.php new file mode 100644 index 0000000000..f99f6ba756 --- /dev/null +++ b/ext/afform/mock/tests/phpunit/api/v4/formatExamples/stylized.php @@ -0,0 +1,22 @@ + '

Stylized text is wonky text!

', + 'pretty' => "

Stylized text is wonky text!

\n", + 'shallow' => [ + ['#tag' => 'p', '#children' => [ + ['#tag' => 'strong', '#children' => [['#text' => 'Stylized']]], + ['#text' => ' text is '], + ['#tag' => 'em', '#children' => [['#text' => 'wonky']]], + ['#text' => ' text!'], + ]], + ], + 'deep' => [ + ['#tag' => 'p', '#children' => [ + ['#tag' => 'strong', '#children' => [['#text' => 'Stylized']]], + ['#text' => ' text is '], + ['#tag' => 'em', '#children' => [['#text' => 'wonky']]], + ['#text' => ' text!'], + ]], + ], +];