How to write JavaScript-style test watchers in PHP

Christoper Pitt published another excellent piece over at Sitepoint. This time he describes how he built a watcher to automatically recompile his preprocessed code and rerun the tests. In order to reduce the burden of invoking the transformation scripts, boilerplate projects have started to include scripts to automatically watch for file changes; and thereafter invoke […]

Continue reading →

Solidify Fragile Tests

Joe Ferguson shares a tip on how to make a version of PHPUnit’s assertArraySubset where the order of the array does not matter. The problem with this test is that `assertArraySubset()` will fail if the items in the array are out of order. And since we don’t have an `ORDER BY` on our query in […]

Continue reading →