Skip to content

Instantly share code, notes, and snippets.

View Rho-bur's full-sized avatar
💭
I may be slow to respond.

Robertino Vasilescu Rho-bur

💭
I may be slow to respond.
View GitHub Profile
@Rho-bur
Rho-bur / MockEntityManager.php
Created February 18, 2023 16:59 — forked from Taluu/MockEntityManager.php
Mock some services for PHPUnit
<?php
namespace Traits\Tests;
/**
* Mocks the entity manager
*
* Provides everything in the memory, so the tests does not depend on doctrine,
* which does a lot of stuff (maybe too much). This also allows to avoid to
* need and modify the data in the database, even if those are for the tests.
@Rho-bur
Rho-bur / promisesEM.md
Created November 3, 2021 08:54 — forked from dmvaldman/promisesEM.md
Promises as EventEmitters

Promises as EventEmitters

I was trying to understand JavaScript Promises by using various libraries (bluebird, when, Q) and other async approaches.

I read the spec, some blog posts, and looked through some code. I learned how to

@Rho-bur
Rho-bur / .gitignore
Created July 3, 2021 07:52 — forked from prestarocket/.gitignore
Gitignore PrestaShop 1.7
# Cache, temp and personal files
/.htaccess
*.log
npm-debug.log.*
.sass-cache/
/cache/*
download/*
/img/*
/log/*