[dev] [cvs] commit: framework/Support/lib/Horde/Support Stub.php framework/Support/test/Horde/Support StubTest.php

Chuck Hagenbuch chuck at horde.org
Tue Jun 17 13:39:35 UTC 2008


Quoting Jan Schneider <jan at horde.org>:

>>  Modified files:
>>    Support/lib/Horde/Support Stub.php
>>    Support/test/Horde/Support StubTest.php
>>  Log:
>>  add call chaining so that the stub re-stubs itself
>>
>>  Revision  Changes    Path
>>  1.3       +10 -4     framework/Support/lib/Horde/Support/Stub.php
>>  1.2       +13 -1     framework/Support/test/Horde/Support/StubTest.php
>>
>>  Chora Links:
>>   
>> http://cvs.horde.org/diff.php/framework/Support/lib/Horde/Support/Stub.php?r1=1.2&r2=1.3&ty=u
>>   
>> http://cvs.horde.org/diff.php/framework/Support/test/Horde/Support/StubTest.php?r1=1.1&r2=1.2&ty=u
>>
>> --
>> To unsubscribe, mail: cvs-unsubscribe at lists.horde.org
>>
>
> __get() should not return the object, only __call() and __callStatic().

Look at the tests. __get returning self is necessary for  
$stub->bar->baz() to work. A bit esoteric, perhaps, but it's the  
purpose of the stub.

-chuck


More information about the dev mailing list