Changeset 66

Show
Ignore:
Timestamp:
01/15/07 17:04:18 (2 years ago)
Author:
mikey
Message:

extracted interface stubObject from stubBaseObject
added stubException implements stubObject
all exceptions now extend stubException

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/events/stubCallbackException.php

    r48 r66  
    1313 * @subpackage  events 
    1414 */ 
    15 class stubCallbackException extends Exception 
     15class stubCallbackException extends stubException 
    1616{ 
    1717 
  • trunk/src/main/php/helper/validators/stubValidatorException.php

    r52 r66  
    1313 * @subpackage  helper 
    1414 */ 
    15 class stubValidatorException extends Exception 
     15class stubValidatorException extends stubException 
    1616{ 
    1717 
  • trunk/src/main/php/ioc/injection/InjectionException.php

    r29 r66  
    1313 * @subpackage  ioc 
    1414 */ 
    15 class InjectionException extends Exception 
     15class InjectionException extends stubException 
    1616{ 
    1717     
  • trunk/src/main/php/ipo/request/filters/stubFilterException.php

    r55 r66  
    1515 * @subpackage  ipo 
    1616 */ 
    17 class stubFilterException extends Exception 
     17class stubFilterException extends stubException 
    1818{ 
    1919    /** 
     
    3131    public function __construct(stubRequestValueError $error) 
    3232    { 
    33        parent::__construct($error->getMessage('en_EN')); 
    34        $this->error = $error; 
     33        parent::__construct($error->getMessage('en_EN')); 
     34        $this->error = $error; 
    3535    } 
    3636 
     
    4242    public function getError() 
    4343    { 
    44        return $this->error; 
     44        return $this->error; 
    4545    } 
    4646} 
  • trunk/src/main/php/ipo/request/stubRequestValueErrorException.php

    r53 r66  
    1313 * @subpackage  ipo 
    1414 */ 
    15 class stubRequestValueErrorException extends Exception 
     15class stubRequestValueErrorException extends stubException 
    1616{ 
    1717 
  • trunk/src/main/php/stubBaseObject.php

    r65 r66  
    1313 * @package  stubbles 
    1414 */ 
    15 class stubBaseObject 
     15class stubBaseObject implements stubObject 
    1616{ 
    1717    /** 
     
    5555    public function equals($compare) 
    5656    { 
    57         if ($compare instanceof self) { 
     57        if ($compare instanceof stubObject) { 
    5858            return ($this->hashCode() == $compare->hashCode()); 
    5959        } 
  • trunk/src/main/php/stubClassLoader.php

    r65 r66  
    110110 * every other class that should extend it 
    111111 */ 
    112 stubClassLoader::load('stubBaseObject'); 
     112stubClassLoader::load('stubObject', 'stubBaseObject', 'stubException'); 
    113113?> 
  • trunk/src/main/php/websites/exceptions/PageConfigurationException.php

    r2 r66  
    1313 * @subpackage  websites 
    1414 */ 
    15 class PageConfigurationException extends Exception 
     15class PageConfigurationException extends stubException 
    1616{ 
    1717    // nothing to do 
  • trunk/src/main/php/xml/stubXMLException.php

    r25 r66  
    1414 * @subpackage xml 
    1515 */ 
    16 class stubXMLException extends Exception {} 
     16class stubXMLException extends stubException {} 
    1717?> 
  • trunk/src/test/php/stubTestSuite.php

    r65 r66  
    2424        $this->addTestFile($dir . '/stubBaseObjectTestCase.php'); 
    2525        $this->addTestFile($dir . '/stubClassLoaderTestCase.php'); 
     26        $this->addTestFile($dir . '/stubExceptionTestCase.php'); 
    2627    } 
    2728}