Extends
lithium\test\UnitSource
public function testConstructWithConfigError() {
$base = Libraries::get(true, 'resources') . '/tmp/tests';
$this->skipIf(!is_writable($base), "{$base} is not writable.");
$stream = fopen($this->streams['error'], 'w');
$response = new Response(array('error' => $stream));
$this->assertTrue(is_resource($response->error));
$this->assertEqual($stream, $response->error);
}