-
- /**
- * No actual request is made herein
- */
- public function testGuzzleHttpRequest() {
- $handler = HandlerStack::create( new MockHandler( [ new Response( 200 ) ] ) );
- $r = new GuzzleHttpRequest( 'http://www.example.text', [ 'handler' => $handler ] );
- $r->execute();
- $this->assertEquals( 200, $r->getStatus() );
-
- // @TODO: add failure tests (404s and failure to connect)
- }