1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php use \PHPUnit\Framework\TestCase; use \GuzzleHttp\Client; class GuzzleHarness extends TestCase { /** @var GuzzleHttp\Client */ protected $client = null; public function setUp() { $this->client = new Client([ 'base_uri' => 'http://127.0.0.1:8081', 'timeout' => 1, ]); } }