/** * Test * * @return void */ public function testFromArray() { $this->object->delete(); $this->object = Model::fromArray(array('lastname' => 'Test', 'firstname' => 'Test', 'email' => '*****@*****.**', 'login' => 'test', 'user_acl_role_id' => 1)); $this->assertEquals('*****@*****.**', $this->object->getEmail()); }