Changeset 1363
- Timestamp:
- 02/24/08 20:58:29 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/ipo/session/stubAbstractSession.php
r1344 r1363 8 8 */ 9 9 stubClassLoader::load('net::stubbles::ipo::session::stubSession', 10 'net::stubbles::ipo::request::stubRequest' 10 'net::stubbles::ipo::request::stubRequest', 11 'net::stubbles::lang::exceptions::stubRuntimeException' 11 12 ); 12 13 /** … … 117 118 * cloning is forbidden 118 119 * 119 * @throws stub SessionException120 */ 121 p rotectedfinal function __clone()122 { 123 throw new stub SessionException('Cloning the session is somewhat... useless.');120 * @throws stubRuntimeException 121 */ 122 public final function __clone() 123 { 124 throw new stubRuntimeException('Cloning the session is somewhat... useless.'); 124 125 } 125 126 trunk/src/test/php/net/stubbles/ipo/session/stubAbstractSessionTestCase.php
r1272 r1363 251 251 $this->assertSame($second, $third); 252 252 } 253 254 /** 255 * you should not clone a session 256 * 257 * @test 258 * @expectedException stubRuntimeException 259 */ 260 public function cloneSessionThrowsRuntimeException() 261 { 262 $session = clone $this->session; 263 } 253 264 } 254 265 ?>
