public function setUp() { parent::setup(); $this->serviceManager = Bootstrap::getServiceManager(); $this->em = $this->serviceManager->get('Doctrine\\ORM\\EntityManager'); $this->negocio = new AnexoNegocio($this->em); }