Replacing built-in PHP functions like time() in unit tests
Great technique to override the implementation of built-in PHP functions, e.g. to create tests that require a predefined time.
Great technique to override the implementation of built-in PHP functions, e.g. to create tests that require a predefined time.