/** * @expectedException DomainException * @expectedExceptionCode 1000 */ public function testAvoidInvalidUser() { $this->object->setUser(''); $this->object->getUser(''); }