Source

						public function testReadWithModelConditions() {
		$http = new Http($this->_testConfig);
		$query = new Query(array(
			'model' => $this->_model,
			'conditions' => array('page' => 2)
		));

		$result = $http->read($query);
		$expected = join("\r\n", array(
			'GET /posts?page=2 HTTP/1.1',
			'Host: localhost:80',
			'Connection: Close',
			'User-Agent: Mozilla/5.0',
			'Content-Type: application/x-www-form-urlencoded',
			'', ''
		));
		$result = (string) $http->last->request;
		$this->assertEqual($expected, $result);
	}