From 991be095f8c3d8987c7de90de632f5118a32f85f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 27 Nov 2019 18:08:44 -0800 Subject: [PATCH] Add api/v4/formatExamples/stylized.php --- .../api/v4/formatExamples/stylized.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ext/afform/mock/tests/phpunit/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!'], + ]], + ], +]; -- 2.25.1