public function setUp() { file_put_contents($this->dbPath, ''); $sqliteConfig = new SqliteConfig($this->dbPath); $this->repository = new SqlitePhotoRepository($sqliteConfig); $this->repository->initialize(); $this->photo = new Photo(new PhotoId(), new ResourceId('test'), new PhotoName('test'), new HttpUrl('http://test'), new PhotoAltCollection(), new Position()); $this->repository->save($this->photo); }