/** * @covers ::__construct */ public function test__construct() { $user = new User(); $this->assertEquals('', $user->getLogin()); $this->assertEquals('', $user->getPassword()); $this->assertInstanceOf('\\DateTime', $user->getCreated()); $this->assertInstanceOf('\\DateTime', $user->getModified()); $this->assertInstanceOf('\\Doctrine\\Common\\Collections\\ArrayCollection', $user->getGroups()); $this->assertInstanceOf('\\Doctrine\\Common\\Collections\\ArrayCollection', $user->getRevisions()); $this->assertEquals('login', $this->mockUser->getLogin()); $this->assertEquals('password', $this->mockUser->getPassword()); $this->assertEquals('firstname', $this->mockUser->getFirstname()); $this->assertEquals('firstname', $this->mockUser->getFirstname()); $this->assertEquals('lastname', $this->mockUser->getLastname()); }