Skip to content

Commit

Permalink
remove test from test_ob branch.
Browse files Browse the repository at this point in the history
This test intended to exercice the ob_start and ob_end function on Heroku hardware. It didn't worked
  • Loading branch information
MathieuNls committed Feb 3, 2016
1 parent b6c23fe commit 1195bb1
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions application/controllers/Measures.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,6 @@ public function __construct() {
$this->load->library('auto_email');
}

function test()
{
$out = fopen(APPPATH."config/google-api.p12", "wb");
$ch = curl_init();

curl_setopt($ch, CURLOPT_FILE, $out);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, "https://toolwatch.io");

curl_exec($ch);
echo "<br>Error is : ".curl_error ( $ch);

curl_close($ch);

fclose($out);

var_dump(file_get_contents(APPPATH."config/google-api.p12"));
}


/**
* Loads the dashboard of an user.
*/
Expand Down Expand Up @@ -362,20 +342,8 @@ function accuracyMeasure() {
$result['accuracy'] = $watchMeasure->accuracy;
$result['percentile'] = $watchMeasure->percentile;


log_message('info', 'OUT OF HERE');

$this->output->_display("");
ob_end_flush();
echo json_encode($result);

// Ignore connection-closing by the client/user
ignore_user_abort(true);

$this->auto_email->updateObserver($this, NEW_ACCURACY,
array('measure' => $watchMeasure));


} else {
$result['success'] = false;
echo json_encode($result);
Expand Down

0 comments on commit 1195bb1

Please sign in to comment.