1PHPUnit is a framework independent library for unit testing PHP. Unit testing is a method by which small units of code are tested against expected results. ... This can result in errors going undetected for a long time and it can be difficult to isolate the cause of a specific bug within the code.