We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e72a3 commit 221a23bCopy full SHA for 221a23b
Tests/Security/CheckLdapCredentialsListenerTest.php
@@ -147,7 +147,12 @@ public function testBindFailureShouldThrowAnException()
147
148
public function testQueryForDn()
149
{
150
- $collection = new \ArrayIterator([new Entry('')]);
+ $collection = new class([new Entry('')]) extends \ArrayObject implements CollectionInterface {
151
+ public function toArray(): array
152
+ {
153
+ return $this->getArrayCopy();
154
+ }
155
+ };
156
157
$query = $this->createMock(QueryInterface::class);
158
$query->expects($this->once())->method('execute')->willReturn($collection);
0 commit comments