summaryrefslogtreecommitdiffstats
path: root/tests/lib/SimpleSAML/Utils/HTTPTest.php
diff options
context:
space:
mode:
authorJaime Pérez <jaime.perez@uninett.no>2016-06-27 18:18:40 +0200
committerJaime Pérez <jaime.perez@uninett.no>2016-06-27 18:18:40 +0200
commit64142de9743d8715de5cd09650715a5c5587e2c8 (patch)
tree4f96f6fea216ce0b46b1dd47549c8782bd5b7302 /tests/lib/SimpleSAML/Utils/HTTPTest.php
parentc72b62038e3687b78ac2b4ef76aa4a3f262beeda (diff)
downloadsimplesamlphp-64142de9743d8715de5cd09650715a5c5587e2c8.zip
simplesamlphp-64142de9743d8715de5cd09650715a5c5587e2c8.tar.gz
simplesamlphp-64142de9743d8715de5cd09650715a5c5587e2c8.tar.bz2
tests: Fix CI build.
Now that we are using realpath() to try to obtain the URL relative to the base URL path of SSP, we need to use real scripts or realpath() will return an empty string.
Diffstat (limited to 'tests/lib/SimpleSAML/Utils/HTTPTest.php')
-rw-r--r--tests/lib/SimpleSAML/Utils/HTTPTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lib/SimpleSAML/Utils/HTTPTest.php b/tests/lib/SimpleSAML/Utils/HTTPTest.php
index ff7e69f..92a022f 100644
--- a/tests/lib/SimpleSAML/Utils/HTTPTest.php
+++ b/tests/lib/SimpleSAML/Utils/HTTPTest.php
@@ -153,10 +153,10 @@ class HTTPTest extends \PHPUnit_Framework_TestCase
'baseurlpath' => 'https://example.com/simplesaml/',
), '[ARRAY]', 'simplesaml');
$baseDir = $cfg->getBaseDir();
- $_SERVER['SCRIPT_FILENAME'] = $baseDir.'www/script.php';
- $_SERVER['REQUEST_URI'] = '/simplesaml/script.php/module/file.php?foo=bar#something';
+ $_SERVER['SCRIPT_FILENAME'] = $baseDir.'www/module.php';
+ $_SERVER['REQUEST_URI'] = '/simplesaml/module.php/module/file.php?foo=bar#something';
$this->assertEquals(
- 'https://example.com/simplesaml/script.php/module/file.php?foo=bar#something',
+ 'https://example.com/simplesaml/module.php/module/file.php?foo=bar#something',
HTTP::getSelfURL()
);
@@ -165,7 +165,7 @@ class HTTPTest extends \PHPUnit_Framework_TestCase
'baseurlpath' => 'https://example.com/simplesaml',
), '[ARRAY]', 'simplesaml');
$this->assertEquals(
- 'https://example.com/simplesaml/script.php/module/file.php?foo=bar#something',
+ 'https://example.com/simplesaml/module.php/module/file.php?foo=bar#something',
HTTP::getSelfURL()
);
@@ -174,7 +174,7 @@ class HTTPTest extends \PHPUnit_Framework_TestCase
'baseurlpath' => 'https://example.com',
), '[ARRAY]', 'simplesaml');
$this->assertEquals(
- 'https://example.com/script.php/module/file.php?foo=bar#something',
+ 'https://example.com/module.php/module/file.php?foo=bar#something',
HTTP::getSelfURL()
);
@@ -186,7 +186,7 @@ class HTTPTest extends \PHPUnit_Framework_TestCase
unset($_SERVER['HTTPS']);
unset($_SERVER['SERVER_PORT']);
$this->assertEquals(
- 'http://example.org/simplesaml/script.php/module/file.php?foo=bar#something',
+ 'http://example.org/simplesaml/module.php/module/file.php?foo=bar#something',
HTTP::getSelfURL()
);
@@ -196,7 +196,7 @@ class HTTPTest extends \PHPUnit_Framework_TestCase
), '[ARRAY]', 'simplesaml');
$_SERVER['SERVER_PORT'] = '8080';
$this->assertEquals(
- 'http://example.org:8080/simplesaml/script.php/module/file.php?foo=bar#something',
+ 'http://example.org:8080/simplesaml/module.php/module/file.php?foo=bar#something',
HTTP::getSelfURL()
);
@@ -206,7 +206,7 @@ class HTTPTest extends \PHPUnit_Framework_TestCase
), '[ARRAY]', 'simplesaml');
$_SERVER['HTTPS'] = 'on';
$this->assertEquals(
- 'https://example.org:8080/simplesaml/script.php/module/file.php?foo=bar#something',
+ 'https://example.org:8080/simplesaml/module.php/module/file.php?foo=bar#something',
HTTP::getSelfURL()
);