Changeset 1439

Show
Ignore:
Timestamp:
03/19/08 17:52:53 (2 months ago)
Author:
mikey
Message:

refactoring #137, part 2: added stubProcessor::forcesSSL()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/websites/processors/stubAbstractProcessor.php

    r1435 r1439  
    9393 
    9494    /** 
     95     * checks whether the current request forces ssl or not 
     96     * 
     97     * @return  bool 
     98     */ 
     99    public function forcesSSL() 
     100    { 
     101        return false; 
     102    } 
     103 
     104    /** 
    95105     * checks whether the request is ssl or not 
    96106     * 
  • trunk/src/main/php/net/stubbles/websites/processors/stubProcessor.php

    r1435 r1439  
    4545 
    4646    /** 
     47     * checks whether the current request forces ssl or not 
     48     * 
     49     * @return  bool 
     50     */ 
     51    public function forcesSSL(); 
     52 
     53    /** 
    4754     * checks whether the request is ssl or not 
    4855     * 
  • trunk/src/test/php/net/stubbles/websites/processors/stubAbstractProcessorTestCase.php

    r1437 r1439  
    9191 
    9292    /** 
     93     * a processor never forces ssl by default 
     94     * 
     95     * @test 
     96     */ 
     97    public function neverForcesSSLByDefault() 
     98    { 
     99        $this->assertFalse($this->abstractProcessor->forcesSSL()); 
     100    } 
     101 
     102    /** 
    93103     * ssl evaluates to true if validation returns true, should only be evaluated once 
    94104     *