Amp\ArtaxTest\ClientHttpBinIntegrationTest::testVerboseSend PHP Method

testVerboseSend() public method

public testVerboseSend ( )
    public function testVerboseSend()
    {
        $uri = "http://httpbin.org/";
        $client = new Client();
        $client->setOption(Client::OP_VERBOSITY, Client::VERBOSE_SEND);
        $promise = $client->request($uri);
        $response = \Amp\wait($promise);
        $expectedLines = ["GET / HTTP/1.1", "Accept-Encoding: gzip, identity", "Host: httpbin.org", "User-Agent: " . Client::USER_AGENT, "Accept: */*"];
        $this->expectOutputString(implode("\r\n", $expectedLines) . "\r\n\r\n");
    }