コード例 #1
0
ファイル: User.php プロジェクト: WildCodeSchool/projet-gesty
 public function setEmail($email)
 {
     parent::setEmail($email);
     parent::setUsername($email);
 }
コード例 #2
0
 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');
 }