Example #1
0
 public function setUp()
 {
     $this->_stubs = \idfly\Moka::stub(null, ['report' => 'REPORT', 'stubs' => 'STUBS', 'invoke' => 'INVOKE']);
     $this->_object = new Spy('__UNDEFINED__', ['stubs' => $this->_stubs]);
 }
Example #2
0
 public function testStubClassAttachesExtraMethodToParent()
 {
     $stub = \idfly\Moka::stub(self::HELPER, ['extra' => 'EXTRA']);
     $this->assertEquals('EXTRA', $stub->extra());
 }