@@ -29,6 +29,7 @@ public static function setUpBeforeClass(): void
2929 Configuration::setPreLoadedConfig ($ sourceConfig , 'authsources.php ' );
3030 }
3131
32+
3233 public function buildSourceMock (): Ldap
3334 {
3435 $ mb = $ this ->getMockBuilder (ConnectorInterface::class);
@@ -51,11 +52,12 @@ public function __construct(ConnectorInterface $connector)
5152 };
5253 }
5354
55+
5456 public function testLogin (): void
5557 {
5658 $ source = $ this ->buildSourceMock ();
57- /** @psalm-var \PHPUnit\Framework\MockObject\MockObject $connector */
5859 $ connector = $ source ->getConnector ();
60+ /** @phpstan-ignore method.notFound */
5961 $ connector ->method ('search ' )->willReturn (
6062 new Entry ('test ' , ['test1 ' => ['testval1 ' ]]),
6163 );
@@ -76,8 +78,8 @@ public function testLogin(): void
7678 public function testGetAttributes (): void
7779 {
7880 $ source = $ this ->buildSourceMock ();
79- /** @psalm-var \PHPUnit\Framework\MockObject\MockObject $connector */
8081 $ connector = $ source ->getConnector ();
82+ /** @phpstan-ignore method.notFound */
8183 $ connector ->method ('search ' )->willReturn (
8284 new Entry ('test ' , ['test2 ' => ['testval2 ' ]]),
8385 );
@@ -90,7 +92,7 @@ public function testGetAttributes(): void
9092 public function testGetAttributesWithAttributesSetToNull (): void
9193 {
9294 $ source = $ this ->buildSourceMock ();
93- /** @psalm-var \PHPUnit\Framework\MockObject\MockObject $connector */
95+ /** @phpstan-ignore method.notFound */
9496 $ connector = $ source ->getConnector ();
9597 $ connector ->method ('search ' )->willReturn (
9698 new Entry ('test ' , ['test1 ' => ['testval1 ' ], 'test2 ' => ['testval2 ' ], 'test3 ' => ['testval3 ' ]]),
0 commit comments