Changeset 763

Show
Ignore:
Timestamp:
02/06/08 22:16:53 (1 year ago)
Author:
laurentj
Message:

fixed bug #450: some tests fail if the default time zone is not Europe/Paris. p=rahal

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.x/testapp/modules/jelix_tests/tests/utils.jdatetime.html_cli.php

    r704 r763  
    44* @subpackage  jelix_tests module 
    55* @author      Florian Hatat 
    6 * @contributor 
    7 * @copyright   2007 Florian Hatat 
     6* @contributor Rahal 
     7* @copyright   2007 Florian Hatat, 2008 Rahal 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    1111 
    1212class testjDateTime extends UnitTestCase { 
     13 
     14    function setUp(){ 
     15        date_default_time_zone("Europe/Paris"); 
     16    } 
     17    function tearDown(){ 
     18        global $gJConfig; 
     19        date_default_time_zone($gJConfig->timeZone); 
     20    } 
    1321 
    1422    function testValidConstruct(){ 
  • branches/1.0.x/testapp/modules/jelix_tests/tests/utils.jdatetime.html_cli.php

    r704 r763  
    44* @subpackage  jelix_tests module 
    55* @author      Florian Hatat 
    6 * @contributor 
    7 * @copyright   2007 Florian Hatat 
     6* @contributor Rahal 
     7* @copyright   2007 Florian Hatat, 2008 Rahal 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    1111 
    1212class testjDateTime extends UnitTestCase { 
     13 
     14    function setUp(){ 
     15        date_default_time_zone("Europe/Paris"); 
     16    } 
     17    function tearDown(){ 
     18        global $gJConfig; 
     19        date_default_time_zone($gJConfig->timeZone); 
     20    } 
    1321 
    1422    function testValidConstruct(){ 
  • branches/1.0.x/testapp/modules/jelix_tests/tests/utils.jdatetime.html_cli.php

    r704 r763  
    44* @subpackage  jelix_tests module 
    55* @author      Florian Hatat 
    6 * @contributor 
    7 * @copyright   2007 Florian Hatat 
     6* @contributor Rahal 
     7* @copyright   2007 Florian Hatat, 2008 Rahal 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    1111 
    1212class testjDateTime extends UnitTestCase { 
     13 
     14    function setUp(){ 
     15        date_default_time_zone("Europe/Paris"); 
     16    } 
     17    function tearDown(){ 
     18        global $gJConfig; 
     19        date_default_time_zone($gJConfig->timeZone); 
     20    } 
    1321 
    1422    function testValidConstruct(){ 
  • trunk/testapp/modules/jelix_tests/tests/utils.jdatetime.html_cli.php

    r704 r763  
    44* @subpackage  jelix_tests module 
    55* @author      Florian Hatat 
    6 * @contributor 
    7 * @copyright   2007 Florian Hatat 
     6* @contributor Rahal 
     7* @copyright   2007 Florian Hatat, 2008 Rahal 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    1111 
    1212class testjDateTime extends UnitTestCase { 
     13 
     14    function setUp(){ 
     15        date_default_time_zone("Europe/Paris"); 
     16    } 
     17 
     18    function tearDown(){ 
     19        global $gJConfig; 
     20        date_default_time_zone($gJConfig->timeZone); 
     21    } 
    1322 
    1423    function testValidConstruct(){ 
  • trunk/testapp/modules/jelix_tests/tests/utils.jdatetime.html_cli.php

    r704 r763  
    44* @subpackage  jelix_tests module 
    55* @author      Florian Hatat 
    6 * @contributor 
    7 * @copyright   2007 Florian Hatat 
     6* @contributor Rahal 
     7* @copyright   2007 Florian Hatat, 2008 Rahal 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    1111 
    1212class testjDateTime extends UnitTestCase { 
     13 
     14    function setUp(){ 
     15        date_default_time_zone("Europe/Paris"); 
     16    } 
     17 
     18    function tearDown(){ 
     19        global $gJConfig; 
     20        date_default_time_zone($gJConfig->timeZone); 
     21    } 
    1322 
    1423    function testValidConstruct(){ 
  • trunk/testapp/modules/jelix_tests/tests/utils.jdatetime.html_cli.php

    r704 r763  
    44* @subpackage  jelix_tests module 
    55* @author      Florian Hatat 
    6 * @contributor 
    7 * @copyright   2007 Florian Hatat 
     6* @contributor Rahal 
     7* @copyright   2007 Florian Hatat, 2008 Rahal 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    1111 
    1212class testjDateTime extends UnitTestCase { 
     13 
     14    function setUp(){ 
     15        date_default_time_zone("Europe/Paris"); 
     16    } 
     17 
     18    function tearDown(){ 
     19        global $gJConfig; 
     20        date_default_time_zone($gJConfig->timeZone); 
     21    } 
    1322 
    1423    function testValidConstruct(){ 
Download in other formats: Unified Diff Zip Archive