update unit testing to use newer PHPUnit API