File tree 1 file changed +12
-2
lines changed
src/Symfony/Component/Security/Core/Tests/Authentication/Provider
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,12 @@ public function testQueryForDn()
105
105
{
106
106
$ userProvider = $ this ->createMock (UserProviderInterface::class);
107
107
108
- $ collection = new \ArrayIterator ([new Entry ('' )]);
108
+ $ collection = new class ([new Entry ('' )]) extends \ArrayObject implements CollectionInterface {
109
+ public function toArray (): array
110
+ {
111
+ return $ this ->getArrayCopy ();
112
+ }
113
+ };
109
114
110
115
$ query = $ this ->createMock (QueryInterface::class);
111
116
$ query
@@ -146,7 +151,12 @@ public function testQueryWithUserForDn()
146
151
{
147
152
$ userProvider = $ this ->createMock (UserProviderInterface::class);
148
153
149
- $ collection = new \ArrayIterator ([new Entry ('' )]);
154
+ $ collection = new class ([new Entry ('' )]) extends \ArrayObject implements CollectionInterface {
155
+ public function toArray (): array
156
+ {
157
+ return $ this ->getArrayCopy ();
158
+ }
159
+ };
150
160
151
161
$ query = $ this ->createMock (QueryInterface::class);
152
162
$ query
You can’t perform that action at this time.
0 commit comments