Navigation Menu

Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Sep 10, 2014
1 parent 6025893 commit f505d14
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions tests/TestCase/BasicsTest.php
Expand Up @@ -71,40 +71,6 @@ public function testEnv() {

$server = $_SERVER;
$env = $_ENV;

$_SERVER['HTTP_HOST'] = 'localhost';
$this->assertEquals(env('HTTP_BASE'), '.localhost');

$_SERVER['HTTP_HOST'] = 'com.ar';
$this->assertEquals(env('HTTP_BASE'), '.com.ar');

$_SERVER['HTTP_HOST'] = 'example.ar';
$this->assertEquals(env('HTTP_BASE'), '.example.ar');

$_SERVER['HTTP_HOST'] = 'example.com';
$this->assertEquals(env('HTTP_BASE'), '.example.com');

$_SERVER['HTTP_HOST'] = 'www.example.com';
$this->assertEquals(env('HTTP_BASE'), '.example.com');

$_SERVER['HTTP_HOST'] = 'subdomain.example.com';
$this->assertEquals(env('HTTP_BASE'), '.example.com');

$_SERVER['HTTP_HOST'] = 'example.com.ar';
$this->assertEquals(env('HTTP_BASE'), '.example.com.ar');

$_SERVER['HTTP_HOST'] = 'www.example.com.ar';
$this->assertEquals(env('HTTP_BASE'), '.example.com.ar');

$_SERVER['HTTP_HOST'] = 'subdomain.example.com.ar';
$this->assertEquals(env('HTTP_BASE'), '.example.com.ar');

$_SERVER['HTTP_HOST'] = 'double.subdomain.example.com';
$this->assertEquals(env('HTTP_BASE'), '.subdomain.example.com');

$_SERVER['HTTP_HOST'] = 'double.subdomain.example.com.ar';
$this->assertEquals(env('HTTP_BASE'), '.subdomain.example.com.ar');

$_SERVER = $_ENV = array();

$_SERVER['SCRIPT_NAME'] = '/a/test/test.php';
Expand Down

0 comments on commit f505d14

Please sign in to comment.