SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,053
    Mentioned
    66 Post(s)
    Tagged
    0 Thread(s)

    PHP Unit: Worst Manual Ever.

    http://phpunit.de/manual/3.7/en/writ...r-phpunit.html

    I've been through this thing a dozen times now - at no point does it explain how to actually *run* a test. What's the bloody point of writing a test if running it is never explained?

  2. #2

  3. #3
    Community Advisor bronze trophy
    fretburner's Avatar
    Join Date
    Apr 2013
    Location
    Brazil
    Posts
    1,446
    Mentioned
    45 Post(s)
    Tagged
    13 Thread(s)
    This section of the manual deals with running tests from the command line: http://phpunit.de/manual/3.7/en/textui.html

  4. #4
    @php.net Salathe's Avatar
    Join Date
    Dec 2004
    Location
    Edinburgh
    Posts
    1,397
    Mentioned
    65 Post(s)
    Tagged
    0 Thread(s)
    Michael Morris: Worst Ability-To-Find-What-Is-Right-Under-Your-Nose Ever.
    Salathe
    Software Developer and PHP Manual Author.

  5. #5
    SitePoint Guru bronze trophy
    Join Date
    Dec 2003
    Location
    Poland
    Posts
    930
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    I've found that at the beginning it's easiest to run tests from an IDE that supports PHPUnit. Recently, I set up Netbeans to run tests and it was super easy plus the test files with classes and method definitions were created for me automatically by the Skeleton Generator. Now I can run tests by using a menu item or a shortcut in Netbeans. Other IDE's should have similar support, I suppose.

    However, I know there are people who will swear that command line rules!

  6. #6
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,053
    Mentioned
    66 Post(s)
    Tagged
    0 Thread(s)
    I have a severe cold and at the time that was posted I was running a temperature of 101. I plead infection induced dementia your honor. (I was reading the PHP Unit manual on my ipad in bed, too weak to sit upright and type at length).

  7. #7
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,053
    Mentioned
    66 Post(s)
    Tagged
    0 Thread(s)
    Ok, is there a way to chain tests together rather than run them one at a time? (Each test hits one class or a tight group of classes, but I'd like to be able to test the whole system).

  8. #8
    @php.net Salathe's Avatar
    Join Date
    Dec 2004
    Location
    Edinburgh
    Posts
    1,397
    Mentioned
    65 Post(s)
    Tagged
    0 Thread(s)
    Salathe
    Software Developer and PHP Manual Author.

  9. #9
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,053
    Mentioned
    66 Post(s)
    Tagged
    0 Thread(s)
    Looks simple enough.


Bookmarks

Posting Permissions

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