Skip to content

Instantly share code, notes, and snippets.

View Neirda24's full-sized avatar
🍺
🍺

Adrien Roches Neirda24

🍺
🍺
View GitHub Profile
@Neirda24
Neirda24 / GuzzleClientAware.php
Last active January 15, 2018 16:32
Sample of how I mocked EightPoints guzzle Clients
<?php
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Promise\FulfilledPromise;
use GuzzleHttp\Psr7\Response;
use InvalidArgumentException;
use Psr\Container\ContainerInterface;
use Psr\Http\Message\RequestInterface;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;