converted phpunit ClientRequestTest to PHPTs