Пример #1
0
 /**
  * Stub only some methods of class and leave another unchanged:
  */
 public function testMockClass()
 {
     $class = \idfly\Moka::mockClass('\\idfly\\Moka', ['::method' => 'VALUE']);
     $this->assertEquals('VALUE', $class::method());
     $this->assertInstanceOf('\\idfly\\moka\\Spy', $class::spy());
 }