Changeset 1908

Show
Ignore:
Timestamp:
10/27/08 15:08:05 (2 months ago)
Author:
mikey
Message:

fix test: offset in non-dst is of course 3600 seconds, not 0

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework/trunk/src/test/php/net/stubbles/lang/types/stubTimeZoneTestCase.php

    r1868 r1908  
    6868 
    6969    /** 
    70      * offset in seconds for current date is 0 seconds or 7200 seconds, depending 
     70     * offset in seconds for current date is 3600 seconds or 7200 seconds, depending 
    7171     * whether we are in dst or not 
    7272     * 
    7373     * @test 
    7474     */ 
    75     public function offsetForCurrentDateIs0SecondsOr7200SecondsDependingWhetherInDstOrNot() 
     75    public function offsetForCurrentDateIs3600SecondsOr7200SecondsDependingWhetherInDstOrNot() 
    7676    { 
    7777        $offset = $this->timeZone->getOffsetInSeconds(); 
    78         $this->assertTrue((0 === $offset || 7200 === $offset)); 
     78        $this->assertTrue((3600 === $offset || 7200 === $offset)); 
    7979    } 
    8080