Algorithm PHPunit test cases