Changeset 1102
- Timestamp:
- 12/04/07 09:04:47 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/lang/errorhandler/stubCompositeErrorHandler.php
r1092 r1102 32 32 { 33 33 $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; 34 44 } 35 45 trunk/src/test/php/net/stubbles/lang/errorhandler/stubCompositeErrorHandlerTestCase.php
r1092 r1102 54 54 $this->mockErrorHandler3 = new MockstubErrorHandler(); 55 55 $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 ); 56 68 } 57 69
