Example #1
0
	public function testInstace()
	{
		$this->assertInstanceOf('Nella\Utils\Curl\Request', $this->wrapper, "is Nella\\Utils\\Curl\\Request instance");
		$wrapper = new Request("http://example.com");
		$this->assertTrue(is_string($wrapper->getUrl()), "->getUrl()");
		$this->assertTrue(is_string($wrapper->url), "->url");
	}
Example #2
0
	public function testGetResponse()
	{
		$this->assertInstanceOf('Nella\Utils\Curl\Response', $this->wrapper->getResponse(Request::HEAD, "http://www.google.com"));
	}