File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,7 @@ protected function getLine(): ?string
177
177
//или попадем на уровень выше - проверяем, что нашли нужный
178
178
if ($ nameFilter === $ this ->reader ->name ) {
179
179
//некоторые проблемы с получением человекочитаемого xml
180
- $ return = preg_replace_callback ('/&#[A-Z0-9]+;/i ' , function (array $ matches ): string {
181
- return html_entity_decode ($ matches [0 ]);
182
- }, $ this ->reader ->readOuterXml ());
180
+ $ return = $ this ->reader ->readOuterXml ();
183
181
//нужно передвинуть указатель, чтобы дважды не прочитать
184
182
//один и тот же элемент
185
183
$ this ->reader ->next ();
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class FiasSerializerTest extends BaseCase
19
19
*/
20
20
public function testDenormalize ()
21
21
{
22
- $ data = '<ActualStatus ACTSTATID="2" NAME="Не актуальный " TESTDATE="2019-10-10T10:10:10.02" KOD_T_ST="10"/> ' ;
22
+ $ data = '<ActualStatus ACTSTATID="2" NAME="Не актуальный " TESTDATE="2019-10-10T10:10:10.02" KOD_T_ST="10"/> ' ;
23
23
$ serializer = new FiasSerializer ;
24
24
25
25
$ object = $ serializer ->deserialize ($ data , FiasSerializerObject::class, 'xml ' );
Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ public function testRead()
72
72
73
73
$ this ->assertSame (
74
74
[
75
- 0 => '<ActualStatus ACTSTATID="0" NAME="Не актуальный <<A>>"/> ' ,
76
- 1 => '<ActualStatus ACTSTATID="1" NAME="Актуальный "/> ' ,
77
- 2 => '<ActualStatus ACTSTATID="2" NAME="3-й "А ""/> ' ,
75
+ 0 => '<ActualStatus ACTSTATID="0" NAME="Не актуальный <<A>>"/> ' ,
76
+ 1 => '<ActualStatus ACTSTATID="1" NAME="Актуальный "/> ' ,
77
+ 2 => '<ActualStatus ACTSTATID="2" NAME="3-й "А ""/> ' ,
78
78
],
79
79
$ result
80
80
);
You can’t perform that action at this time.
0 commit comments