Ignore:
Timestamp:
11/19/08 19:11:33 (4 years ago)
Author:
CrawfordCurrie
Message:

Item175: ported unit tests to new namespace. They all pass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/lib/Unit/TestCase.pm

    r14 r816  
    283283    my @params = @_; 
    284284    my $result; 
    285     my ( $release ) = $TWiki::RELEASE =~ /-(\d+)\.\d+\.\d+/; 
     285    my ( $release ) = $Foswiki::RELEASE =~ /-(\d+)\.\d+\.\d+/; 
    286286 
    287287    { 
     
    294294    if ( $release >= 5 ) { 
    295295        $response = 
    296           UNIVERSAL::isa( $params[0], 'TWiki' ) 
     296          UNIVERSAL::isa( $params[0], 'Foswiki' ) 
    297297          ? $params[0]->{response} 
    298           : $TWiki::Plugins::SESSION->{response}; 
     298          : $Foswiki::Plugins::SESSION->{response}; 
    299299 
    300300        # Capture headers 
    301         TWiki::Engine->finalizeCookies($response); 
     301        Foswiki::Engine->finalizeCookies($response); 
    302302        foreach my $header ( keys %{ $response->headers } ) { 
    303303            $text .= $header . ': ' . $_ . "\x0D\x0A" 
Note: See TracChangeset for help on using the changeset viewer.