Пример #1
0
/**
 * time() mock.
 *
 * This mock works only if the built-in wasn't used before. I.e. tests
 * which want to mock time() have to run before other tests which might
 * call somewhere in the stack an unmocked time(). If the built in was
 * called before there is no chance to mock time() anymore.
 */
function time()
{
    return TimeMock::time();
}