Exemple #1
0
 public function testIndexRespondsWithXmlContent()
 {
     $Http = new AkHttpClient();
     $options = array('header' => array('accept' => 'text/xml'));
     $result = $Http->get($this->_test_script . 'people', $options);
     $headers = $Http->getResponseHeaders();
     $this->assertEqual('application/xml', $headers['content-type']);
 }
 function testIndexRespondsWithXmlContent()
 {
     $Http = new AkHttpClient();
     $options = array('header' => array('accept' => 'text/xml'));
     $result = $Http->get(AK_TESTING_URL . '/people', $options);
     $headers = $Http->getResponseHeaders();
     $this->assertEquals('text/xml', $headers['content-type']);
     #var_dump($Http->getResponseHeaders());
     #var_dump($result);
 }