Source

						public function testRender() {
		$response = new Response();
		$response->type('json');
		$data = array('something');
		Media::render($response, $data);

		$result = $response->headers();
		$this->assertEqual(array('Content-type: application/json; charset=UTF-8'), $result);

		$result = $response->body();
		$this->assertEqual(json_encode($data), $result);
	}