Skip to content

Commit 0c814c3

Browse files
committed
improved test
1 parent 869a0fc commit 0c814c3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/ComponentModel/Container.getComponents.phpt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ Assert::same([
5757
'two',
5858
'button1',
5959
], array_keys(iterator_to_array($list)));
60+
// again
61+
Assert::same([
62+
'one',
63+
'inner',
64+
'inner2',
65+
'button2',
66+
'two',
67+
'button1',
68+
], array_keys(iterator_to_array($list)));
6069

6170

6271
// Recursive & filter I
@@ -65,6 +74,11 @@ Assert::same([
6574
'button2',
6675
'button1',
6776
], array_keys(iterator_to_array($list)));
77+
// again
78+
Assert::same([
79+
'button2',
80+
'button1',
81+
], array_keys(iterator_to_array($list)));
6882

6983

7084
// Recursive & filter II

0 commit comments

Comments
 (0)