Yes. time() has external dependencies (microtime) which means: you cant test this. The factory allows you to create a mock for that and test your code regardless of what unixtime it is.