@@ -37,8 +37,8 @@ public function it_does_nothing_if_it_is_not_a_libero_italic_element(string $xml
37
37
38
38
public function nodeProvider () : iterable
39
39
{
40
- yield 'different namespace ' => ['<i xmlns="http://example.com">foo</i > ' ];
41
- yield 'different element ' => ['<b xmlns="http://libero.pub">foo</b > ' ];
40
+ yield 'different namespace ' => ['<italic xmlns="http://example.com">foo</italic > ' ];
41
+ yield 'different element ' => ['<bold xmlns="http://libero.pub">foo</bold > ' ];
42
42
}
43
43
44
44
/**
@@ -67,7 +67,7 @@ public function it_does_nothing_if_there_is_already_text_set() : void
67
67
{
68
68
$ visitor = new ItalicVisitor ($ this ->createFailingConverter ());
69
69
70
- $ xml = FluentDOM::load ('<i xmlns="http://libero.pub">foo</i > ' );
70
+ $ xml = FluentDOM::load ('<italic xmlns="http://libero.pub">foo</italic > ' );
71
71
/** @var Element $element */
72
72
$ element = $ xml ->documentElement ;
73
73
@@ -88,9 +88,9 @@ public function it_sets_the_template_and_text_argument() : void
88
88
89
89
$ xml = FluentDOM::load (
90
90
<<<XML
91
- <libero:i xmlns:libero="http://libero.pub">
92
- foo <libero:b >bar</libero:b > baz
93
- </libero:i >
91
+ <libero:italic xmlns:libero="http://libero.pub">
92
+ foo <libero:bold >bar</libero:bold > baz
93
+ </libero:italic >
94
94
XML
95
95
);
96
96
/** @var Element $element */
@@ -105,15 +105,15 @@ public function it_sets_the_template_and_text_argument() : void
105
105
'text ' => [
106
106
new View (
107
107
null ,
108
- ['node ' => '/libero:i /text()[1] ' , 'template ' => null , 'context ' => ['qux ' => 'quux ' ]]
108
+ ['node ' => '/libero:italic /text()[1] ' , 'template ' => null , 'context ' => ['qux ' => 'quux ' ]]
109
109
),
110
110
new View (
111
111
null ,
112
- ['node ' => '/libero:i /libero:b ' , 'template ' => null , 'context ' => ['qux ' => 'quux ' ]]
112
+ ['node ' => '/libero:italic /libero:bold ' , 'template ' => null , 'context ' => ['qux ' => 'quux ' ]]
113
113
),
114
114
new View (
115
115
null ,
116
- ['node ' => '/libero:i /text()[2] ' , 'template ' => null , 'context ' => ['qux ' => 'quux ' ]]
116
+ ['node ' => '/libero:italic /text()[2] ' , 'template ' => null , 'context ' => ['qux ' => 'quux ' ]]
117
117
),
118
118
],
119
119
],
0 commit comments