BUG 0000 fix test/bootstrap.php

php5.2 and test for first method of Gtest ready
This commit is contained in:
Brayan Osmar Pereyra Suxo
2012-05-09 17:19:35 -04:00
parent e70305d0dd
commit fcfac3f77c
2 changed files with 13 additions and 26 deletions

View File

@@ -4,6 +4,10 @@
// Defining the PATH_SEP constant, he we are defining if the the path separator symbol will be '\\' or '/'
define('PATH_SEP', '/');
if (!defined('__DIR__')) {
define ('__DIR__', dirname(__FILE__));
}
// Defining the Home Directory
define('PATH_TRUNK', realpath(__DIR__ . '/../') . PATH_SEP);
define('PATH_HOME', PATH_TRUNK . 'workflow' . PATH_SEP);

View File

@@ -1,41 +1,24 @@
<?php
require_once PATH_TRUNK . 'gulliver' . PATH_SEP . "system" . PATH_SEP . "class.g.php";
/**
* Generated by PHPUnit_SkeletonGenerator on 2012-05-09 at 10:14:57.
*/
class GTest extends PHPUnit_Framework_TestCase
{
/**
* @var G
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new G;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* @covers G::is_https
* @todo Implement testIs_https().
*/
public function testIs_https()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->assertFalse(G::is_https());
$_SERVER̈́['HTTPS'] = '';
$this->assertFalse(G::is_https());
$_SERVER['HTTPS'] = 'on';
$this->assertTrue(G::is_https());
}
/**