days
-1
-7
hours
-1
-3
minutes
-1
-2
seconds
-3
-7
search

#php

Mock the unmockable

Testing PHP code more efficiently

Quality code is highly valued in the PHP community. You’ll rarely find untested libraries on GitHub. Two problems that developers encounter again and again during testing are the handling of file operations, as well as testing built-in PHP functions such as time() or exec() on certain expectations. In this article, Tommy Mühle explains a few solutions for such cases.