summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorJean-Luc Gyger <jean-luc.gyger@vysual.ch>2016-02-11 10:01:12 +0100
committerJean-Luc Gyger <jean-luc.gyger@vysual.ch>2016-02-11 10:01:12 +0100
commitd70861a8f9368773f2f0291454e9420174e6c14a (patch)
treee44a32e401211422fb05da355c9eef4d5934d9e9 /tests/unit
parentd32f65815eb6feb4bcb8a0c85572f722d7826342 (diff)
parent275f16b90a92c62935cb691d11e0bd124acf64e4 (diff)
Merge branch 'master' of https://github.com/majuca/prado
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/Web/TAssetManagerTest.php2
-rw-r--r--tests/unit/Web/THttpCookieTest.php4
-rw-r--r--tests/unit/Web/THttpRequestTest.php4
-rw-r--r--tests/unit/Web/TUriTest.php8
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/unit/Web/TAssetManagerTest.php b/tests/unit/Web/TAssetManagerTest.php
index 13d2d6c1..2480830a 100644
--- a/tests/unit/Web/TAssetManagerTest.php
+++ b/tests/unit/Web/TAssetManagerTest.php
@@ -22,7 +22,7 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase {
$_SERVER['QUERY_STRING'] = 'page=Links';
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
$_SERVER['PATH_INFO'] = __FILE__;
- $_SERVER['HTTP_REFERER'] = 'http://www.pradosoft.com';
+ $_SERVER['HTTP_REFERER'] = 'https://github.com/pradosoft/prado';
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3';
$_SERVER['REMOTE_HOST'] = 'localhost';
diff --git a/tests/unit/Web/THttpCookieTest.php b/tests/unit/Web/THttpCookieTest.php
index 206ef105..c94282f1 100644
--- a/tests/unit/Web/THttpCookieTest.php
+++ b/tests/unit/Web/THttpCookieTest.php
@@ -15,8 +15,8 @@ class THttpCookieTest extends PHPUnit_Framework_TestCase {
public function testSetDomain() {
$cookie=new THttpCookie('name','value');
- $cookie->setDomain('pradosoft.com');
- self::assertEquals('pradosoft.com',$cookie->getdomain());
+ $cookie->setDomain('pradoframework.net');
+ self::assertEquals('pradoframework.net',$cookie->getdomain());
}
public function testSetExpire() {
diff --git a/tests/unit/Web/THttpRequestTest.php b/tests/unit/Web/THttpRequestTest.php
index 7f5da17d..314cce0a 100644
--- a/tests/unit/Web/THttpRequestTest.php
+++ b/tests/unit/Web/THttpRequestTest.php
@@ -23,7 +23,7 @@ class THttpRequestTest extends PHPUnit_Framework_TestCase {
$_SERVER['QUERY_STRING'] = 'page=Links';
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
$_SERVER['PATH_INFO'] = __FILE__;
- $_SERVER['HTTP_REFERER'] = 'http://www.pradosoft.com';
+ $_SERVER['HTTP_REFERER'] = 'https://github.com/pradosoft/prado';
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3';
$_SERVER['REMOTE_HOST'] = 'localhost';
@@ -194,7 +194,7 @@ class THttpRequestTest extends PHPUnit_Framework_TestCase {
public function testGetUrlReferrer() {
$request = new THttpRequest();
$request->init(null);
- self::assertEquals('http://www.pradosoft.com', $request->getUrlReferrer());
+ self::assertEquals('https://github.com/pradosoft/prado', $request->getUrlReferrer());
}
public function testGetBrowser() {
diff --git a/tests/unit/Web/TUriTest.php b/tests/unit/Web/TUriTest.php
index b610cd1b..351a2cce 100644
--- a/tests/unit/Web/TUriTest.php
+++ b/tests/unit/Web/TUriTest.php
@@ -7,7 +7,7 @@ Prado::using('System.Web.THttpRequest');
*/
class TUriTest extends PHPUnit_Framework_TestCase {
- const URISTR='http://login:p@ssw0rd:compl3x@www.pradosoft.com:80/demos/quickstart/index.php?page=test&param1=test2#anchor';
+ const URISTR='http://login:p@ssw0rd:compl3x@www.pradoframework.net:80/demos/quickstart/index.php?page=test&param1=test2#anchor';
public function setUp () {
$this->uri=new TUri(self::URISTR);
@@ -18,11 +18,11 @@ class TUriTest extends PHPUnit_Framework_TestCase {
}
public function testConstruct() {
- $url="http://www.pradosoft.com/";
+ $url="http://www.pradoframework.net/";
$uri=new TUri ($url);
self::assertEquals($url, $uri->getUri() );
// Bad uri test
- $url="http://www.pradosoft.com:badport/test";
+ $url="http://www.pradoframework.net:badport/test";
try {
$url=new TUri($url);
self::fail ('exception not raised with an invalid URL');
@@ -40,7 +40,7 @@ class TUriTest extends PHPUnit_Framework_TestCase {
}
public function testGetHost() {
- self::assertEquals('www.pradosoft.com', $this->uri->getHost());
+ self::assertEquals('www.pradoframework.net', $this->uri->getHost());
}
public function testGetPort() {