File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -62,22 +62,14 @@ public function testRead()
62
62
63
63
$ reader = new BaseXmlReader ;
64
64
$ reader ->open ($ file , '/ActualStatuses/ActualStatus ' );
65
- $ result = [];
66
65
foreach ($ reader as $ key => $ item ) {
67
66
}
67
+
68
68
foreach ($ reader as $ key => $ item ) {
69
- $ result [$ key ] = $ item ;
69
+ $ this ->assertStringContainsString ('ActualStatus ' , $ item );
70
+ $ this ->assertStringContainsString ('ACTSTATID=" ' . $ key . '' , $ item );
70
71
}
71
72
$ reader ->close ();
72
-
73
- $ this ->assertSame (
74
- [
75
- 0 => '<ActualStatus ACTSTATID="0" NAME="Не актуальный <<A>>"/> ' ,
76
- 1 => '<ActualStatus ACTSTATID="1" NAME="Актуальный"/> ' ,
77
- 2 => '<ActualStatus ACTSTATID="2" NAME="3-й "А""/> ' ,
78
- ],
79
- $ result
80
- );
81
73
}
82
74
83
75
/**
You can’t perform that action at this time.
0 commit comments