How can I mock for PHP default functions like date and time?
I tried,
$builder = $this->getMockBuilder(__NAMESPACE__)->getMock();
$builder->expects($this->once())->method('date')->with('m')->willReturn('test');
It's giving me the error,
Trying to configure method "date" which cannot be configured because it does not exist, has not been specified, is final, or is static