/** * @expectedException \LogicException * @expectedExceptionMessage Cannot set empty activation key! Please call "removeActivationKey()" instead for the removal of the activation key! */ public function testEmptyActivationKey() { $user = new User(); $user->setActivationKey(null); }