Skip to content
Permalink
Browse files

add tests

  • Loading branch information...
RobinDev committed Jan 15, 2019
1 parent 224e80e commit 57f2298094538b3fb26bb583fec55383f807e06e
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/RequestTest.php
@@ -144,11 +144,17 @@ public function testMultipleCheckInHeaders()
->setUserAgent('Hello :)')
->setDownloadOnlyIf([$checkHeaders, 'check'])
->setReturnHeader(true)
->setPost('testpost')
;
$result = $request->exec();
$this->assertTrue(is_array($result->getHeaders()));
$this->assertSame(null, $result->getCookies());
$this->assertSame(404, $result->getInfo('http_code'));
$this->assertSame(0, $result->getRequest()->hasError());
$this->assertSame(404, $result->getRequest()->getInfo(CURLINFO_HTTP_CODE));
$result->getRequest()->close();
}
}

0 comments on commit 57f2298

Please sign in to comment.
You can’t perform that action at this time.