Skip to content

Commit

Permalink
Check the correct variable in the multiple test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue committed Aug 10, 2013
1 parent 617eff1 commit ab23228
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Transport/Base.php
Expand Up @@ -381,11 +381,11 @@ public function testMultiple() {
$this->assertEmpty($result['args']);

// test2
$this->assertNotEmpty($responses['test1']);
$this->assertInstanceOf('Requests_Response', $responses['test1']);
$this->assertEquals(200, $responses['test1']->status_code);
$this->assertNotEmpty($responses['test2']);
$this->assertInstanceOf('Requests_Response', $responses['test2']);
$this->assertEquals(200, $responses['test2']->status_code);

$result = json_decode($responses['test1']->body, true);
$result = json_decode($responses['test2']->body, true);
$this->assertEquals('http://httpbin.org/get', $result['url']);
$this->assertEmpty($result['args']);
}
Expand Down

0 comments on commit ab23228

Please sign in to comment.