Changeset 1283
- Timestamp:
- 01/23/08 10:17:24 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/test/php/net/stubbles/lang/stubModeTestCase.php
r1236 r1283 16 16 * @subpackage lang_test 17 17 */ 18 class MockstubErrorHandler extends stubBaseObject implements stubErrorHandler18 class stubModestubErrorHandler extends stubBaseObject implements stubErrorHandler 19 19 { 20 20 /** … … 154 154 public function getCallbackWithStatic() 155 155 { 156 $handler = array('class' => ' MockstubErrorHandler',156 $handler = array('class' => 'stubModestubErrorHandler', 157 157 'method' => 'handle', 158 158 'type' => stubMode::HANDLER_STATIC 159 159 ); 160 $this->assertEquals(array(' MockstubErrorHandler', 'handle'),160 $this->assertEquals(array('stubModestubErrorHandler', 'handle'), 161 161 TeststubMode::$FOO->retrieveCallback($handler) 162 162 ); … … 171 171 public function getCallbackWithStaticButInstanceGiven() 172 172 { 173 $instance = new MockstubErrorHandler();173 $instance = new stubModestubErrorHandler(); 174 174 $handler = array('class' => $instance, 175 175 'method' => 'handle', … … 186 186 public function getCallbackWithInstanceFromClassname() 187 187 { 188 $handler = array('class' => ' MockstubErrorHandler',188 $handler = array('class' => 'stubModestubErrorHandler', 189 189 'method' => 'handle', 190 190 'type' => stubMode::HANDLER_INSTANCE 191 191 ); 192 192 $callback = TeststubMode::$FOO->retrieveCallback($handler); 193 $this->assertType(' MockstubErrorHandler', $callback[0]);193 $this->assertType('stubModestubErrorHandler', $callback[0]); 194 194 $this->assertEquals('handle', $callback[1]); 195 195 } … … 202 202 public function getCallbackWithInstanceFromInstance() 203 203 { 204 $instance = new MockstubErrorHandler();204 $instance = new stubModestubErrorHandler(); 205 205 $handler = array('class' => $instance, 206 206 'method' => 'handle',
