MDL-43266 Add PHPunit tests.