/** * @expectedException InvalidArgumentException */ public function testOwnersException() { $user = new User(); $this->site->addOwner($user); $this->site->removeOwner($user); }