public function testDelegateCall()
 {
     $this->testInstance->expects($this->exactly(2))->method('getDelegate')->will($this->returnValue($this));
     $this->testInstance->extend('extension', function () {
         return $this->testValue;
     });
     $this->assertSame($this->testValue, $this->testInstance->methodToDelegate());
     $this->assertSame($this->testValue, $this->testInstance->extension());
 }
Example #2
0
 public function __construct(Application $application)
 {
     parent::__construct($application);
     $this->modelStack = new ModelStack();
     $this->metaStack = new MetaStack();
 }