PHPNW Test Fest Pre-presentation

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    PHPNW Test Fest Pre-presentation - Presentation Transcript

    1. PHPNW May 2009
    2. php|tek MTA conference Chicago 19 th to 22 nd May
    3. DPC Dutch PHP Conference 11 th to 13 th June Amsterdam (all in English)
    4. ZendCon CfP ZendCon Call for Papers Open til 31 st May Conference: San Jose, CA 19 th to 22 nd October
    5. ZF 1.8 Zend Framework new version
    6. Test Fest Newton Building Salford University Saturday 9 th May 2009 12 - 4 pm
    7. When/Where/Who
      • Salford University
      • Newton Building
      • (get the train to Salford Crescent)
      • Saturday, 9 th May 2009
      • YOU!!
    8. Testing PHP
      • PHP uses phpt tests, a type of unit test
      --TEST-- Hello world test --FILE-- <?php echo &quot;Hello&quot;; ?> --CLEAN-- --EXPECT-- Hello
    9. Getting Set Up
      • Download a VM
      • Set up your own system
    10. Requirements
      • PHP 5.3 code from http://snaps.php.net
      • Build Environment (see later)
      • Text Editor
      • SVN Client
      • PHP coding ability
      • Enthusiasm
    11. Build Environment
      • Packages (for my system)
        • php
        • build-essential
        • libxml2-dev
        • lcov
      • For your system – RTFM until you can successfully run &quot;make test&quot;
    12. Running Tests
      • Unzip your PHP source
      • ./configure
      • make
      • make test
      • If you get to here, you're all set :)
    13. Running One or Few Tests
      • make test TESTS=/path/to/testfile.phpt
      • make test TESTS=/path/to/tests
      • Or use the run-tests.php script itself
      • export TEST_PHP_EXECUTABLE=<path to php source>/sapi/cli/php
      • $TEST_PHP_EXECUTABLE <path to php source>/run-tests.php tests/ext/spl/
    14. Generating Coverage Report
      • make lcov
        • optionally with TESTS= just like make test
      • look for the directory lcov_html
      • open index.php in web browser
    15. Coverage Report
    16. SPL
      • Standard PHP Library
      • A set of standard interfaces for common problems
      • Many different kinds of iterator
      • Presentation at TestFest about the extension
    17. Why Should I Bother?
      • Learn about compiling and testing PHP
      • Raffle for elephpants
      • May get a test accepted
      • We're going for beer afterwards
    18. Test Fest Newton Building Salford University Saturday 9 th May 2009 12 - 4 pm

    + Lorna MitchellLorna Mitchell, 6 months ago

    custom

    483 views, 0 favs, 0 embeds more stats

    Slides from May's PHPNW meet. Some PHP community n more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 483
      • 483 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 9
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories