Is there a way?
class AAA extends BBB {
public function ccc()
{
parent::ccc();
}
}
I want to check parent ccc method 1 time called
Is there a way?
class AAA extends BBB {
public function ccc()
{
parent::ccc();
}
}
I want to check parent ccc method 1 time called
Static calls can't be mocked and are usually a bad smell.
http://misko.hevery.com/2008/12/15/static-methods-are-death-to-testability/
That said, Mockery does have some wizzardry to allow you to test them:
http://docs.mockery.io/en/latest/reference/public_static_properties.html
But you really shouldn't be using static methods.