예제 #1
0
 /**
  * This if the constructor has added our middleware
  */
 public function testConstructor_HasMiddleware()
 {
     $client = new Client('http://www.example.com');
     $handler = $client->getConfig('handler');
     $stack = \Jasny\get_private_property($handler, 'stack');
     $names = array_column($stack, 1);
     $this->assertContains('bind_uri', $names);
     $this->assertContains('last_response', $names);
     $this->assertContains('parse', $names);
 }