public function setUp() { $this->config = Config::getInstanceByArray($this->configAr); file_put_contents($this->configAr['repository']['config']['dbpath'], ''); $this->config->getPhotoRepository()->initialize(); $this->config->getPhotoThumbRepository()->initialize(); $this->photoSuite = PhotoSuite::create($this->config); }