Skip to content

Instantly share code, notes, and snippets.

@mageekguy
Created February 15, 2013 19:55
Show Gist options
  • Save mageekguy/4963005 to your computer and use it in GitHub Desktop.
Save mageekguy/4963005 to your computer and use it in GitHub Desktop.
protected function mockAllSubLogMethods(atoum\mock\aggregator $mock)
{
$controller = $mock->getMockController();
foreach ($controller->getMockedMethods() as $method)
{
if ($method !== 'log')
{
$controller->{$method} = function() {};
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment