/** * @expectedException \LogicException */ public function testThrowsExceptionWhenSettingDisplayNameForWrongTypes() { $grantee = new Grantee('*****@*****.**'); $grantee->setDisplayName('FooBar'); }