diff --git a/tests/bootstrap.php b/tests/bootstrap.php index e6a0a16bd..e8d0561cf 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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); diff --git a/tests/gulliver/system/GTest.php b/tests/gulliver/system/GTest.php index c7590ec54..da9708179 100644 --- a/tests/gulliver/system/GTest.php +++ b/tests/gulliver/system/GTest.php @@ -1,41 +1,24 @@ 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()); } /**