Changeset 1102

Show
Ignore:
Timestamp:
12/04/07 09:04:47 (1 year ago)
Author:
mikey
Message:

added net::stubbles::lang::errorhandler::stubCompositeErrorHandler::getErrorHandlers()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/lang/errorhandler/stubCompositeErrorHandler.php

    r1092 r1102  
    3232    { 
    3333        $this->errorHandlers[] = $errorHandler; 
     34    } 
     35 
     36    /** 
     37     * returns the list of error handlers 
     38     * 
     39     * @return  array<stubErrorHandler> 
     40     */ 
     41    public function getErrorHandlers() 
     42    { 
     43        return $this->errorHandlers; 
    3444    } 
    3545 
  • trunk/src/test/php/net/stubbles/lang/errorhandler/stubCompositeErrorHandlerTestCase.php

    r1092 r1102  
    5454        $this->mockErrorHandler3     = new MockstubErrorHandler(); 
    5555        $this->compositeErrorHandler->addErrorHandler($this->mockErrorHandler3); 
     56    } 
     57 
     58    /** 
     59     * assert that all registered handlers are returned 
     60     */ 
     61    public function testGetHandlers() 
     62    { 
     63        $this->assertEqual($this->compositeErrorHandler->getErrorHandlers(), array($this->mockErrorHandler1, 
     64                                                                                   $this->mockErrorHandler2, 
     65                                                                                   $this->mockErrorHandler3 
     66                                                                             ) 
     67        ); 
    5668    } 
    5769