Added test method to PHP class