public function testFunctionCallback() {
$mock = $this
->getMock('SomeClass', array(
'doSomething',
), array(), '', FALSE);
$mock
->expects($this
->once())
->method('doSomething')
->will($this
->returnCallback('functionCallback'));
$this
->assertEquals('pass', $mock
->doSomething('foo', 'bar'));
}