replace PHPUnit assertEquals() with homegrown variant