public function setEmail($email) { parent::setEmail($email); parent::setUsername($email); }
public function testToStringWithName() { // Given $user = new BaseUser(); $user->setUsername('John'); // When $string = (string) $user; // Then $this->assertEquals('John', $string, 'Should return the username as string representation'); }