Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Shiflett's Blog:
Test-Harness for PHP
Feb 06, 2006 @ 06:47:01

Chris Shiflett has a quick post today with another addition to the "reasons to use TAP for your testing" - test-harness.php.

In the tradition of test-more.php, Mike Lively adds to the growing list of reasons to be using TAP (Test Anything Protocol) by creating test-harness.php, a TAP-compliant PHP testing harness. This provides yet another testing option for PHP developers:

  • Easy: Apache-Test (with any TAP-compliant library)
  • Easier: test-harness.php (with any TAP-compliant library)
  • Easiest: test-more.php

You can grab the source for test-harness here and the source for test-more here...

tagged: test::harness test-more test-harness TAP apache-test test::harness test-more test-harness TAP apache-test

Link:

Chris Shiflett's Blog:
Test-Harness for PHP
Feb 06, 2006 @ 06:47:01

Chris Shiflett has a quick post today with another addition to the "reasons to use TAP for your testing" - test-harness.php.

In the tradition of test-more.php, Mike Lively adds to the growing list of reasons to be using TAP (Test Anything Protocol) by creating test-harness.php, a TAP-compliant PHP testing harness. This provides yet another testing option for PHP developers:

  • Easy: Apache-Test (with any TAP-compliant library)
  • Easier: test-harness.php (with any TAP-compliant library)
  • Easiest: test-more.php

You can grab the source for test-harness here and the source for test-more here...

tagged: test::harness test-more test-harness TAP apache-test test::harness test-more test-harness TAP apache-test

Link:

Chris Shiflett's Blog:
JApacheCon (Power PHP Testing talk)
Dec 14, 2005 @ 06:47:54

On Chris Shiflett's blog today, there's his update from this year's ApacheCon (or, as he calls it, "JApacheCon" for all the Java that's "infested it"). The post talks about his and Geoff Young's tutorial - Power PHP Testing.

On Sunday, Geoff Young and I gave our tutorial, Power PHP Testing, which went really well. Most of the attendees had PHP experience and no testing experience, so it was a perfect fit.

We covered testing theory as well as some practical examples using phpt, Simple-Test, PHPUnit, and (of course) Apache-Test. We have tarballs for each framework that provide everything you need (I'll link to these in another post), including a Makefile so that make test runs your test suite.

In the talk, they tried to make each framework "shine", pointing out the highlights of each as a standalone method - not in comparison to the others. He also mentions how each was presented and what the largest difference between them is...

tagged: apachecon power testing phpunit phpt apache-test apachecon power testing phpunit phpt apache-test

Link:

Chris Shiflett's Blog:
JApacheCon (Power PHP Testing talk)
Dec 14, 2005 @ 06:47:54

On Chris Shiflett's blog today, there's his update from this year's ApacheCon (or, as he calls it, "JApacheCon" for all the Java that's "infested it"). The post talks about his and Geoff Young's tutorial - Power PHP Testing.

On Sunday, Geoff Young and I gave our tutorial, Power PHP Testing, which went really well. Most of the attendees had PHP experience and no testing experience, so it was a perfect fit.

We covered testing theory as well as some practical examples using phpt, Simple-Test, PHPUnit, and (of course) Apache-Test. We have tarballs for each framework that provide everything you need (I'll link to these in another post), including a Makefile so that make test runs your test suite.

In the talk, they tried to make each framework "shine", pointing out the highlights of each as a standalone method - not in comparison to the others. He also mentions how each was presented and what the largest difference between them is...

tagged: apachecon power testing phpunit phpt apache-test apachecon power testing phpunit phpt apache-test

Link:

Chris Shiflett's Blog:
PHP Testing Tutorial at ApacheCon
Nov 16, 2005 @ 05:32:45

On Chris Shiflett's blog today, there's a new post about a talk with will (hopefully) be given at this year's ApacheCon by Chris and Geoff Young - a PHP testing tutorial.

Admit it - deep down inside, you know you should be testing your PHP applications. With all of the different PHP test environments and the daunting documentation, sometimes it is difficult to know where to start. This tutorial will help. The first step in testing is deciding what to test, so we will begin by offering a very simple (but not contrived) PHP application with identifying elements that lend themselves to testing - both unit tests and functional tests. Next, we will write some real tests using several of the existing PHP testing frameworks, including PHPUnit, Simple Test, phpt, and Apache-Test.

Chris also mentions some of the packages that are out there to perform the testing with - from the ever-popular PHPUnit to Apache-Test and plenty of documentation in between...

tagged: apachecon testing phpunit apache-test apachecon testing phpunit apache-test

Link:

Chris Shiflett's Blog:
PHP Testing Tutorial at ApacheCon
Nov 16, 2005 @ 05:32:45

On Chris Shiflett's blog today, there's a new post about a talk with will (hopefully) be given at this year's ApacheCon by Chris and Geoff Young - a PHP testing tutorial.

Admit it - deep down inside, you know you should be testing your PHP applications. With all of the different PHP test environments and the daunting documentation, sometimes it is difficult to know where to start. This tutorial will help. The first step in testing is deciding what to test, so we will begin by offering a very simple (but not contrived) PHP application with identifying elements that lend themselves to testing - both unit tests and functional tests. Next, we will write some real tests using several of the existing PHP testing frameworks, including PHPUnit, Simple Test, phpt, and Apache-Test.

Chris also mentions some of the packages that are out there to perform the testing with - from the ever-popular PHPUnit to Apache-Test and plenty of documentation in between...

tagged: apachecon testing phpunit apache-test apachecon testing phpunit apache-test

Link: