The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

installing phpunit

Discussion in 'General Discussion' started by bdennie, Mar 30, 2015.

  1. bdennie

    bdennie Member

    Joined:
    Jan 21, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have a customer who requested phpunit to be installed. I tried 2 different instructions for installation.

    shiftedbytes.com/2011/11/installing-pear-phpunit-on-cpanel.html
    But it looks like this way to install was end of life
    github.com/sebastianbergmann/phpunit/wiki/End-of-Life-for-PEAR-Installation-Method

    I have also tried to install this way
    phpunit.de/manual/current/en/installation.html

    But had no luck with this either. Is PHPunit still available or am I doing something wrong? Any help would be great. I do not get any error messages. Once completed I try and run
    php phpunit.phar --version I do not get anything back.

    Has anyone installed this recently and how did you install it.
     
    #1 bdennie, Mar 30, 2015
    Last edited by a moderator: Mar 30, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I followed the instructions for installing it globally at the following URL:

    https://phpunit.de/manual/current/en/installation.html

    It worked as expected:

    Code:
    -bash-4.1# phpunit --version
    PHPUnit 4.6.2 by Sebastian Bergmann and contributors.
    Let us know if that URL is helpful.

    Thank you.
     
Loading...

Share This Page