Пример #1
0
 /** @group issue/175 */
 public function testExistingStaticMethodMocking()
 {
     ehough_mockery_Mockery::setContainer($this->container);
     $mock = $this->container->mock('MockeryTest_PartialStatic[mockMe]');
     $mock->shouldReceive('mockMe')->with(5)->andReturn(10);
     $this->assertEquals(10, $mock::mockMe(5));
     $this->assertEquals(3, $mock::keepMe(3));
 }