Ergo\Http\ClientTest::testRequestMethodsDelegateToTransport PHP Method

testRequestMethodsDelegateToTransport() public method

    public function testRequestMethodsDelegateToTransport()
    {
        $methods = array('GET', 'POST', 'PUT', 'DELETE');
        foreach ($methods as $method) {
            $transport = $this->transport();
            $transport->shouldReceive('send')->with(\Mockery::type('\\Ergo\\Http\\Request'))->andReturn(new Response(200, array()))->once();
            $client = new Client('http://example.org');
            $this->client()->{$method}('/hello', 'content');
        }
    }