Results 1 to 2 of 2

Thread: phpUnit Testing

  1. #1

    Default phpUnit Testing

    Hi,
    I have console access to my shared cPanel server, and I wanted to run some phpUnit testing, is that possible? I can see that it is installed on the server, but I don't have access.

  2. #2
    Join Date
    Aug 2009
    Posts
    239

    Thumbs up

    Hello.

    You should able to access and run PHPUnit command-line test runner tool if its installed on the server. I'm not sure about its usage and implementation but seems its accessible from jailshell access.

    Code:
    -bash-3.2$ which phpunit
    /usr/bin/phpunit
    
    -bash-3.2$ phpunit --help
    X-Powered-By: PHP/5.2.9
    Content-type: text/html
    
    PHPUnit 2.3.6 by Sebastian Bergmann.
    
    Usage: phpunit [switches] UnitTest [UnitTest.php]
      --testdox-html <file>  Write agile documentation in HTML format to file.
      --testdox-text <file>  Write agile documentation in Text format to file.
      --log-xml <file>       Log test progress in XML format to file.
    
      --loader <loader>      TestSuiteLoader implementation to use.
    
      --skeleton             Generate skeleton UnitTest class for Unit in Unit.php.
    
      --wait                 Waits for a keystroke after each test.
    
      --help                 Prints this usage information.
      --version              Prints the version and exits.
    Please PM your primary domain name or the registered email address so that I will check the server and confirm if its installed there.

    Regards,
    Kieran A.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •