/** * Set password for user then there is no * connection to storage. * @expectedException Exception */ public function testSetPasswordException() { $service = new User(); $service->setDataSource(new PDOMock()); $service->setPassword(1, 'hundur'); }