I have following class with one method:
class A
{
public function my( $myParam )
{
\modelClass::truncateTable('table_name');
return $myParam * 4;
}
}
Is it possible to mock static method "truncateTable"? I want to make sure it was called once in "my" method. PHPUnit version 4.5, so "staticExpects" is no longer available in this version (depending this post).