userSource = new UserSource(); } public function testConstructor(): void { $this->assertInstanceOf(Collection::class, $this->userSource->getMemberships()); $this->assertInstanceOf(PersonIdentitySourceInterface::class, $this->userSource->getIdentitySource()); $this->expectException(\TypeError::class); $this->userSource->getUser(); } }