예제 #1
0
 public function __construct()
 {
     parent::__construct();
 }
예제 #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');
 }
 public function __construct()
 {
     $this->groups = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct();
 }