Source

						public function testToContext() {
		$expected = array('http' => array(
			'method' => 'GET',
			'content' => '',
			'header' => array(
				'Host: localhost',
				'Connection: Close',
				'User-Agent: Mozilla/5.0'
			),
			'protocol_version' => '1.1',
			'ignore_errors' => true,
			'follow_location' => true
		));
		$result = $this->request->to('context');
		$this->assertEqual($expected, $result);
	}