Tests that an exception is thrown for cases where an attempt is made to render content for a type which is not registered.

Returns

void

Source

						public function testUndhandledContent() {
		$response = new Response();
		$response->type('bad');

		$this->expectException("Unhandled media type `bad`.");
		Media::render($response, array('foo' => 'bar'));

		$result = $response->body;
		$this->assertNull($result);
	}