@@ -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,10 +52,10 @@ 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 ();
5960 $ connector ->method ('search ' )->willReturn (
6061 new Entry ('test ' , ['test1 ' => ['testval1 ' ]]),
@@ -76,7 +77,6 @@ public function testLogin(): void
7677 public function testGetAttributes (): void
7778 {
7879 $ source = $ this ->buildSourceMock ();
79- /** @psalm-var \PHPUnit\Framework\MockObject\MockObject $connector */
8080 $ connector = $ source ->getConnector ();
8181 $ connector ->method ('search ' )->willReturn (
8282 new Entry ('test ' , ['test2 ' => ['testval2 ' ]]),
@@ -90,7 +90,6 @@ public function testGetAttributes(): void
9090 public function testGetAttributesWithAttributesSetToNull (): void
9191 {
9292 $ source = $ this ->buildSourceMock ();
93- /** @psalm-var \PHPUnit\Framework\MockObject\MockObject $connector */
9493 $ connector = $ source ->getConnector ();
9594 $ connector ->method ('search ' )->willReturn (
9695 new Entry ('test ' , ['test1 ' => ['testval1 ' ], 'test2 ' => ['testval2 ' ], 'test3 ' => ['testval3 ' ]]),
0 commit comments