public function testRecreateSimpleProfile()
 {
     $profile = new UserDetails('*****@*****.**', new \DateTime(), new \DateTime());
     $this->assertSame('en', $profile->getLocale());
     $factory = new ValueObjectFactory();
     /** @var UserDetails $newProfile */
     $newProfile = $factory->modifyValueObject($profile, ['locale' => 'de']);
     $this->assertSame('de', $newProfile->getLocale());
     $this->assertFalse($newProfile->isLocked());
     $this->assertSame('*****@*****.**', $newProfile->getEmail());
 }
 public function testIsOnline()
 {
     $details = new UserDetails('*****@*****.**', new \DateTime('-6 minutes'), new \DateTime());
     $this->assertFalse($details->isOnline());
 }