Changeset 1776
- Timestamp:
- 08/06/08 16:12:28 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
labs/incubator/src/main/php/net/stubbles/lang/mop/stubMetaClass.php
r1775 r1776 88 88 * invokes a method on the given receiver with the specified arguments 89 89 * 90 * Note this method attach the receiver as last argument and pass-through 91 * to the invoked method. 92 * 90 93 * @param stubMetaObjectProtocol $receiver the object which the method invoked on 91 94 * @param string $method the name of the method … … 97 100 { 98 101 if ($this->hasMethod($method)) { 102 $arguments[] = $receiver; 99 103 return ($this->getClass()->getMethod($method)->invokeArgs($this, $arguments)); 100 104 } labs/incubator/src/test/php/net/stubbles/lang/mop/stubMetaClassTestCase.php
r1773 r1776 83 83 { 84 84 $this->assertEquals( 85 $this->stubMetaClass->invokeMethod(new stubMetaObject, 'getClass') ,85 $this->stubMetaClass->invokeMethod(new stubMetaObject, 'getClass')->getFullQualifiedClassName(), 86 86 'net::stubbles::lang::mop::stubMetaClass' 87 87 );
