? Success
Related to # 4717

User tests: Successful: Unsuccessful:

avatar Kubik-Rubik
Kubik-Rubik
17 Oct 2014

Reference: #4717

This PR introduces a wrapper class for the JHttpFactory class to get rid of the static methods to improve the testing basis of the code for our PHPUnit tests!

The static methods (and the wrappers) will be removed completely in Joomla! 4.x.

avatar Kubik-Rubik Kubik-Rubik - open - 17 Oct 2014
avatar jissues-bot jissues-bot - change - 17 Oct 2014
Labels Added: ?
avatar brianteeman brianteeman - change - 17 Oct 2014
Category Unit Tests
avatar brianteeman brianteeman - change - 17 Oct 2014
Rel_Number 4717
Relation Type Related to
avatar wilsonge
wilsonge - comment - 18 Oct 2014

I think the JHttpFactory::getHttp() is effectively a getInstance() method. There's no point in wrapping it you just initiate a new version of JHttp yourself......

avatar mbabker
mbabker - comment - 18 Oct 2014

Factories too can be objects, see JDatabaseFactory.

avatar mbabker mbabker - close - 18 Oct 2014
avatar mbabker mbabker - reference | 210e661 - 18 Oct 14
avatar mbabker mbabker - merge - 18 Oct 2014
avatar mbabker mbabker - close - 18 Oct 2014
avatar mbabker mbabker - change - 18 Oct 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-10-18 09:18:26
avatar mbabker mbabker - change - 18 Oct 2014
Milestone Added:
avatar Kubik-Rubik Kubik-Rubik - head_ref_deleted - 20 Jun 2015

Add a Comment

Login with GitHub to post a comment