From ec98bc00a92fce8b733022f358b08ccef73928d5 Mon Sep 17 00:00:00 2001
From: mattpiwik <matthieu.aubry@gmail.com>
Date: Tue, 14 Aug 2012 03:37:02 +0000
Subject: [PATCH] Refs #3227 removing old proxy-piwik.php to use phpunit
 proxy/piwik.php instead (committed in [6743] )

git-svn-id: http://dev.piwik.org/svn/trunk@6744 59fd770c-687e-43c8-a1e3-f5a4ff64c105
---
 tests/PHPUnit/IntegrationTestCase.php |  2 +-
 tests/integration/Integration.php     |  2 +-
 tests/integration/proxy-piwik.php     | 31 ---------------------------
 3 files changed, 2 insertions(+), 33 deletions(-)
 delete mode 100644 tests/integration/proxy-piwik.php

diff --git a/tests/PHPUnit/IntegrationTestCase.php b/tests/PHPUnit/IntegrationTestCase.php
index d287e8b476..90ff2bf2e8 100755
--- a/tests/PHPUnit/IntegrationTestCase.php
+++ b/tests/PHPUnit/IntegrationTestCase.php
@@ -268,7 +268,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase
 	 */
 	protected static function getTrackerUrl()
 	{
-		return self::getRootUrl().'tests/PHPUnit/proxy-piwik.php';
+		return self::getRootUrl().'tests/PHPUnit/proxy/piwik.php';
 	}
 
     /**
diff --git a/tests/integration/Integration.php b/tests/integration/Integration.php
index 367c32cbc1..6bd8ce4cef 100644
--- a/tests/integration/Integration.php
+++ b/tests/integration/Integration.php
@@ -302,7 +302,7 @@ abstract class Test_Integration extends Test_Database_Base
 	 */
 	protected function getTrackerUrl()
 	{
-		return $this->getRootUrl().'tests/PHPUnit/proxy-piwik.php';
+		return $this->getRootUrl().'tests/PHPUnit/proxy/piwik.php';
 	}
 
 	/**
diff --git a/tests/integration/proxy-piwik.php b/tests/integration/proxy-piwik.php
deleted file mode 100644
index f87a1eab82..0000000000
--- a/tests/integration/proxy-piwik.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- *  Proxy to normal piwik.php, but in testing mode
- *  
- *  - Use the tests database to record Tracking data
- *  - Allows to overwrite the Visitor IP, and Server datetime 
- *  
- * @see Main.test.php
- * 
- */
-// Wrapping the request inside ob_start() calls to ensure that the Test
-// calling us waits for the full request to process before unblocking
-ob_start();
-
-define('PIWIK_INCLUDE_PATH', '../..');
-define('PIWIK_USER_PATH', PIWIK_INCLUDE_PATH);
-
-require_once PIWIK_INCLUDE_PATH .'/libs/upgradephp/upgrade.php';
-require_once PIWIK_INCLUDE_PATH .'/core/Loader.php';
-
-// Config files forced to use the test database
-// Note that this also provides security for Piwik installs containing tests files: 
-// this proxy will not record any data in the production database.
-Piwik::createConfigObject();
-Piwik_Config::getInstance()->setTestEnvironment();	
-Piwik_Config::getInstance()->PluginsInstalled['PluginsInstalled'] = array();
-
-Piwik_Tracker::setTestEnvironment();
-
-include '../../piwik.php';
-ob_flush();
-- 
GitLab