I want to test this code block which has to call a static class.
class SomeModule {
public function processFoo()
{
$foo = FooFactory::getFoo();
// ... Do something to $foo
return $foo;
}
}
I can't modify the static class. I can however change the code inside the module. How can I refactor this code to be unit testable?