PHP version of perl-tdd