Changeset 1746
- Timestamp:
- 07/28/08 22:29:45 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework/trunk/src/main/php/net/stubbles/php/serializer/stubExceptionReference.php
r1224 r1746 17 17 { 18 18 /** 19 * name of referenced exception 20 * 21 * @var string 22 */ 23 protected $exceptionName; 24 /** 19 25 * the stack trace of the referenced exception 20 26 * … … 22 28 */ 23 29 protected $stackTrace = array(); 30 31 /** 32 * sets the name of the referenced exception 33 * 34 * @param string $exceptionName 35 */ 36 public function setReferencedExceptionName($exceptionName) 37 { 38 $this->exceptionName = $exceptionName; 39 } 40 41 /** 42 * returns the name of the referenced exception 43 * 44 * @return string 45 */ 46 public function getReferencedExceptionName() 47 { 48 return $this->exceptionName; 49 } 24 50 25 51 /** framework/trunk/src/test/php/net/stubbles/php/serializer/stubExceptionReferenceTestCase.php
r1703 r1746 34 34 35 35 /** 36 * assure that exceptionName property can be get and set 37 * 38 * @test 39 */ 40 public function exceptionNameProperty() 41 { 42 $this->assertNull($this->exceptionReference->getReferencedExceptionName()); 43 $this->exceptionReference->setReferencedExceptionName('foo::bar::BazException'); 44 $this->assertEquals('foo::bar::BazException', $this->exceptionReference->getReferencedExceptionName()); 45 } 46 /** 36 47 * assure that stack trace property can be get and set 37 48 *
