Skip to content

Commit e99a377

Browse files
committed
formatting
1 parent f465cc2 commit e99a377

File tree

2 files changed

+0
-72
lines changed

2 files changed

+0
-72
lines changed

tests/rosette/api/ApiTest.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,6 @@
2727
* @return string mocked response
2828
*/
2929

30-
/*
31-
function file_get_contents($filename, $flags = null, $context = null, $offset = null, $maxlen = null)
32-
{
33-
$context = \stream_context_get_params($context);
34-
$header_str = $context['options']['http']['header'];
35-
preg_match('/X-RosetteAPI-Key:\s*(.+)\s*\r\n/', $header_str, $out); // we borrow the user_key field for testing
36-
$test_file = $out[1];
37-
38-
// prepare mocked response content
39-
$response_data = \file_get_contents(ApiTest::$responseDir . $test_file . '.json');
40-
$response_data = json_encode(json_decode($response_data, true)); // necessary to get a valid json string
41-
if (strlen($response_data) > 200) { // test gzip encoding for longer response
42-
$response_data = gzencode($response_data);
43-
}
44-
45-
return $response_data;
46-
}*/
47-
4830
function curl_exec($ch)
4931
{
5032
$data = array ('response'=>'{"content": "Mocked response content"}');

tests/rosette/api/test.php

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)