Changeset 1483
- Timestamp:
- 03/30/08 23:19:48 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/test/php/net/stubbles/php/serializer/stubPHPSerializerObjectMappingTestCase.php
r1304 r1483 10 10 'net::stubbles::php::serializer::stubPHPSerializerObjectMapping' 11 11 ); 12 /** 13 * Helper class for the test. 14 * 15 * @package stubbles 16 * @subpackage php_serializer_test 17 */ 12 18 class TestSerializingWithSleepAndWakeup 13 19 { … … 19 25 public function __wakeup() { $this->wakeupCalled = true; } 20 26 } 27 /** 28 * Helper class for the test. 29 * 30 * @package stubbles 31 * @subpackage php_serializer_test 32 */ 21 33 class TestForSerializingObjects extends stubBaseObject 22 34 { … … 26 38 public function setBar() { $this->bar = 'bar'; } 27 39 } 40 /** 41 * Helper class for the test. 42 * 43 * @package stubbles 44 * @subpackage php_serializer_test 45 */ 28 46 class TestSerializingPropertyClass { public $blub = 'foo'; } 47 /** 48 * Helper class for the test. 49 * 50 * @package stubbles 51 * @subpackage php_serializer_test 52 */ 29 53 class TestSerializingWithSetState extends stubBaseObject 30 54 { … … 49 73 } 50 74 } 75 /** 76 * Helper class for the test. 77 * 78 * @package stubbles 79 * @subpackage php_serializer_test 80 */ 51 81 class TestPHPSerializerMapping extends stubBaseObject implements stubPHPSerializerMapping 52 82 { … … 92 122 $this->serializer = new stubPHPSerializer(); 93 123 $this->objectMapping = new stubPHPSerializerObjectMapping(); 124 } 125 126 /** 127 * token for this mapping is always "O" 128 * 129 * @test 130 */ 131 public function tokenIsAlwaysO() 132 { 133 $this->assertEquals('O', $this->objectMapping->getToken()); 134 } 135 136 /** 137 * returned information about handled class is always the same 138 * 139 * @test 140 */ 141 public function handledClassIsAlwaysTheSame() 142 { 143 $refClass = $this->objectMapping->getHandledClass(); 144 $this->assertType('ReflectionClass', $refClass); 145 $this->assertSame($refClass, $this->objectMapping->getHandledClass()); 94 146 } 95 147
