/** * Test for user has access to user * when there is no connection to storage. * @expectedException Exception */ public function testGetTypeByUserException() { $service = new User(); $service->setDataSource(new PDOMock()); $service->getTypeByUser(2, 1); }