public function testSetId() { $u = new ae_UserModel(); $u->setId(4); $this->assertTrue($u->getId() === 4); $this->setExpectedException('Exception'); $u->setId(-1); }