user = new User(); $this->user->setUsername(self::USERNAME); $this->user->setPassword(self::PASSWORD); } public function testConstructor(): void { $this->assertInstanceOf(UserInterface::class, new User()); } public function testUsername(): void { $this->assertEquals(self::USERNAME, $this->user->getUsername()); } public function testPassword(): void { $this->assertEquals(self::PASSWORD, $this->user->getPassword()); } public function testSource(): void { $this->assertInstanceOf(UserSource::class, $this->user->getSource()); $this->assertEquals($this->user, $this->user->getSource()->getUser()); } }