#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    17
    Rep Power
    0

    Need to implement PHPUnit


    Hi All,

    We have website on Shared hosting. I am a newbie.
    i have installed PHPUnit testing framework on the server.
    When i try to run a test case in command mode(phpunit --help using Putty), i am getting error as attached No such file or Directory.

    Kindly help me in implementing PHPUnit.

    Regards,
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    Hi,

    obviously the phpunit executable isn't in your PATH. This means you either have to add it (just Google for it) or provide the full path to the file.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    17
    Rep Power
    0
    Thx for the reply.

    Since i m on shared hosting i dont have access to PHP INI.
    so kindly let me know where to add the PATH?

    PHPUnit.php is available in folder /home/xxxxUSNxxxx/php
    also there is a folder by name PHPUnit in /home/xxxxUSNxxxx/php/PHPUnit

    Regards,


    Originally Posted by Jacques1
    Hi,

    obviously the phpunit executable isn't in your PATH. This means you either have to add it (just Google for it) or provide the full path to the file.

IMN logo majestic logo threadwatch logo seochat tools logo