summaryrefslogtreecommitdiff
path: root/_testing/tests
diff options
context:
space:
mode:
authorTobias Sarnowski <tobias@trustedco.de>2012-04-16 18:19:20 +0000
committerTobias Sarnowski <tobias@trustedco.de>2012-04-16 18:19:20 +0000
commitc5dcf21507338e88c9140241647ea962e1cc238e (patch)
treeb0565b0bc35b7059ec37f7b6181088ffe9f5ca2f /_testing/tests
parent6b6e498315b8837e8814bd11f35df08e192cafba (diff)
downloadrpg-c5dcf21507338e88c9140241647ea962e1cc238e.tar.gz
rpg-c5dcf21507338e88c9140241647ea962e1cc238e.tar.bz2
provide some fake $_SERVER entries
Diffstat (limited to '_testing/tests')
-rw-r--r--_testing/tests/testing/inttests_basic.test.php2
-rw-r--r--_testing/tests/testing/inttests_globals.test.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/_testing/tests/testing/inttests_basic.test.php b/_testing/tests/testing/inttests_basic.test.php
index ff4b2d5c1..ca788a91d 100644
--- a/_testing/tests/testing/inttests_basic.test.php
+++ b/_testing/tests/testing/inttests_basic.test.php
@@ -3,7 +3,7 @@
/**
* @group integration
*/
-class InttestsBasicTest extends PHPUnit_Framework_TestCase {
+class InttestsBasicTest extends DokuWikiTest {
/**
* Execute the simplest possible request and expect
* a dokuwiki page which obviously has the word "DokuWiki"
diff --git a/_testing/tests/testing/inttests_globals.test.php b/_testing/tests/testing/inttests_globals.test.php
index 40237d704..6608044c1 100644
--- a/_testing/tests/testing/inttests_globals.test.php
+++ b/_testing/tests/testing/inttests_globals.test.php
@@ -8,7 +8,7 @@ class InttestsGlobalsTest extends PHPUnit_Framework_TestCase {
* Global variables should be restored for every test case.
*/
function testFirstRun() {
- $this->assertEquals('173.194.69.138', $_SERVER['REMOTE_ADDR'], 'Global var not set as expected');
+ $this->assertEquals('87.142.120.6', $_SERVER['REMOTE_ADDR'], 'Global var not set as expected');
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
}
@@ -17,6 +17,6 @@ class InttestsGlobalsTest extends PHPUnit_Framework_TestCase {
* @depends testFirstRun
*/
function testSecondRun() {
- $this->assertEquals('173.194.69.138', $_SERVER['REMOTE_ADDR'], 'Global var not set as expected');
+ $this->assertEquals('87.142.120.6', $_SERVER['REMOTE_ADDR'], 'Global var not set as expected');
}
}