Changeset 1530
- Timestamp:
- 04/10/08 22:43:13 (1 month ago)
- Files:
-
- trunk/src/main/php/net/stubbles/ipo/session/stubAbstractSession.php (modified) (5 diffs)
- trunk/src/main/php/net/stubbles/ipo/session/stubSession.php (modified) (5 diffs)
- trunk/src/main/php/net/stubbles/ipo/session/stubSessionException.php (deleted)
- trunk/src/test/php/net/stubbles/ipo/session/stubAbstractSessionTestCase.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/ipo/session/stubAbstractSession.php
r1363 r1530 9 9 stubClassLoader::load('net::stubbles::ipo::session::stubSession', 10 10 'net::stubbles::ipo::request::stubRequest', 11 'net::stubbles::lang::exceptions::stubIllegalStateException', 11 12 'net::stubbles::lang::exceptions::stubRuntimeException' 12 13 ); … … 142 143 * 143 144 * @return int 144 * @throws stub SessionException145 * @throws stubIllegalStateException 145 146 */ 146 147 public function getStartTime() 147 148 { 148 149 if ($this->isValid() == false) { 149 throw new stub SessionException('Session is in an invalid state.');150 throw new stubIllegalStateException('Session is in an invalid state.'); 150 151 } 151 152 … … 264 265 * @param mixed $default optional return this if no data is associated with $key 265 266 * @return mixed 266 * @throws stub SessionException267 * @throws stubIllegalStateException 267 268 */ 268 269 public function getValue($key, $default = null) 269 270 { 270 271 if ($this->isValid() == false) { 271 throw new stub SessionException('Session is in an invalid state.');272 throw new stubIllegalStateException('Session is in an invalid state.'); 272 273 } 273 274 … … 306 307 * @param string $key key where value is stored under 307 308 * @return bool true if value existed and was removed, else false 308 * @throws stub SessionException309 * @throws stubIllegalStateException 309 310 */ 310 311 public function removeValue($key) 311 312 { 312 313 if ($this->isValid() == false) { 313 throw new stub SessionException('Session is in an invalid state.');314 throw new stubIllegalStateException('Session is in an invalid state.'); 314 315 } 315 316 … … 337 338 * 338 339 * @return array<string> 339 * @throws stub SessionException340 * @throws stubIllegalStateException 340 341 */ 341 342 public function getValueKeys() 342 343 { 343 344 if ($this->isValid() == false) { 344 throw new stub SessionException('Session is in an invalid state.');345 throw new stubIllegalStateException('Session is in an invalid state.'); 345 346 } 346 347 trunk/src/main/php/net/stubbles/ipo/session/stubSession.php
r1301 r1530 7 7 * @subpackage ipo_session 8 8 */ 9 stubClassLoader::load('net::stubbles::ipo::session::stubSessionException');10 9 /** 11 10 * interface for sessions … … 59 58 * 60 59 * @return int 61 * @throws stubSessionException62 60 */ 63 61 public function getStartTime(); … … 129 127 * @param mixed $default optional return this if no data is associated with $key 130 128 * @return mixed 131 * @throws stubSessionException132 129 */ 133 130 public function getValue($key, $default = null); … … 146 143 * @param string $name key where value is stored under 147 144 * @return bool true if value existed and was removed, else false 148 * @throws stubSessionException149 145 */ 150 146 public function removeValue($name); … … 154 150 * 155 151 * @return array<string> 156 * @throws stubSessionException157 152 */ 158 153 public function getValueKeys(); trunk/src/test/php/net/stubbles/ipo/session/stubAbstractSessionTestCase.php
r1363 r1530 99 99 * 100 100 * @test 101 * @expectedException stub SessionException101 * @expectedException stubIllegalStateException 102 102 */ 103 103 public function invalidGetStartTime() … … 112 112 * 113 113 * @test 114 * @expectedException stub SessionException114 * @expectedException stubIllegalStateException 115 115 */ 116 116 public function invalidGetValue() … … 125 125 * 126 126 * @test 127 * @expectedException stub SessionException127 * @expectedException stubIllegalStateException 128 128 */ 129 129 public function invalidRemoveValue() … … 138 138 * 139 139 * @test 140 * @expectedException stub SessionException140 * @expectedException stubIllegalStateException 141 141 */ 142 142 public function invalidGetValueKeys()
