public function testSendSendsWithSync() { $mock = new MockHandler([new Response()]); $client = new Client(['handler' => $mock]); $client->send(new Request('GET', 'http://foo.com')); $this->assertTrue($mock->getLastOptions()['synchronous']); }