Пример #1
0
 public function test_it_should_stop_spying_on_a_method_specified_by_an_instance_of_a_class()
 {
     $dummyClass = new \DummyClass1();
     $method = [$dummyClass, 'dummyMethod3'];
     $spy = Pinkerton::spyOn($method);
     Pinkerton::stopSpyingOn($method);
     $dummyClass->dummyMethod3();
     $this->assertEquals($spy->callCount, 0);
 }
Пример #2
0
function stopSpyingOn($callable)
{
    Pinkerton::stopSpyingOn($callable);
}