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

Chris Shiflett's Blog:
PHP Test Simple
Jan 26, 2006 @ 12:28:18

Chris Shiflett has just posted his response to this article from Nola's blog today dealing with a simple testing class.

A few years ago, Geoff Young and I gave a talk called Testing PHP with Perl. We thought we were being funny (in our defense, those who listened to the talk seemed to agree), but I think all we did is make our project seem inaccessible to PHP developers. Perl is scary. :-)

Part of our project is a pure PHP implementation of Test::More called test-more.php. If you want to really keep things dirt simple (which seems to be Nola's goal), you can use it by itself with no framework.

He also mentions her follow up post, demonstrating how she uses the framework in her examples. He compares this with his own test-more.php, accomplishing the same things. The "test-more.php" script is included as a part of the ApacheTest package or you can grab it directly from his site...

tagged: test::simple framework test-more.php follow-up test::simple framework test-more.php follow-up

Link:

Chris Shiflett's Blog:
PHP Test Simple
Jan 26, 2006 @ 12:28:18

Chris Shiflett has just posted his response to this article from Nola's blog today dealing with a simple testing class.

A few years ago, Geoff Young and I gave a talk called Testing PHP with Perl. We thought we were being funny (in our defense, those who listened to the talk seemed to agree), but I think all we did is make our project seem inaccessible to PHP developers. Perl is scary. :-)

Part of our project is a pure PHP implementation of Test::More called test-more.php. If you want to really keep things dirt simple (which seems to be Nola's goal), you can use it by itself with no framework.

He also mentions her follow up post, demonstrating how she uses the framework in her examples. He compares this with his own test-more.php, accomplishing the same things. The "test-more.php" script is included as a part of the ApacheTest package or you can grab it directly from his site...

tagged: test::simple framework test-more.php follow-up test::simple framework test-more.php follow-up

Link:

Nola's Blog:
Test Freak!
Jan 26, 2006 @ 06:37:20

In her latest post, Nola shares a testing class that she has created based on the Test::Simple method.

I'm writing a PHP class for a user, and then think.. oh gee, how do I know if this works?? oh I'll write a Test::Simple for PHP. Yes, I know there exists one already that uses the power of Perl to test PHP files, but I didn't have time to figure out how to set that up and probably won't be able to use perl anyways on the production system. I can't stand to have global variables, so I made a class. Uber simple. There's probably better ways to do it (I can imagine something much more elegant in PHP 5). But, what do you expect on a whim and 40 minutes...

her code runs a simple check to see if the end of the line being checked (passed in). It's a pretty basic testing framework, but has potential if it was made to accept "test plugins". Of course, there's other options out there too when it comes to testing in PHP...

tagged: testing Test::Simple check newline EOL testing Test::Simple check newline EOL

Link:

Nola's Blog:
Test Freak!
Jan 26, 2006 @ 06:37:20

In her latest post, Nola shares a testing class that she has created based on the Test::Simple method.

I'm writing a PHP class for a user, and then think.. oh gee, how do I know if this works?? oh I'll write a Test::Simple for PHP. Yes, I know there exists one already that uses the power of Perl to test PHP files, but I didn't have time to figure out how to set that up and probably won't be able to use perl anyways on the production system. I can't stand to have global variables, so I made a class. Uber simple. There's probably better ways to do it (I can imagine something much more elegant in PHP 5). But, what do you expect on a whim and 40 minutes...

her code runs a simple check to see if the end of the line being checked (passed in). It's a pretty basic testing framework, but has potential if it was made to accept "test plugins". Of course, there's other options out there too when it comes to testing in PHP...

tagged: testing Test::Simple check newline EOL testing Test::Simple check newline EOL

Link: