PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, August 31, 2022

[FIXED] How can I make a portable PHPUnit?

 August 31, 2022     continuous-integration, dependencies, pear, php, phpunit     No comments   

Issue

I’m trying to do some TDD on PHP. I’m writing tests on PHPunit. So far so good. The problem is that I would like to have PHPUnit under version control, so we don’t have to install it in each coder machine and in the CI server. This may be valid for any other dependency.

What I did was to install PHPUnit via PEAR and just copy the installed files to my project library folder. Is this correct, or is there a better way to do it??

Thanks in advance


Solution

This question's accepted answer would be a perfect solution for you especially if you are using GIT, if you are using something else, it shouldn't be too hard to modify....

Rkulla's answer is good except quite a few comments for the blog post does state that Sebastian does not address the dependency issue for the required modules



Answered By - Marc Towler
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing