The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Apache-Test for the PHP CLI

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chris Shiflett

Posts: 124
Nickname: shiflett
Registered: Sep, 2004

Chris Shiflett is a PHP security specialist and creative thinker.
Apache-Test for the PHP CLI Posted: Jan 27, 2005 8:05 PM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Chris Shiflett.
Original Post: Apache-Test for the PHP CLI
Feed Title: Chris Shiflett's Blog
Feed URL: http://www.feedburner.com/fb/static/error.html
Feed Description: Author, Consultant, Programmer, Speaker, Trainer
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Chris Shiflett
Latest Posts From Chris Shiflett's Blog

Advertisement

Now there's even more reason to be using Apache-Test to test PHP applications:

From Geoff's blog:

today I added the ability to run client-side PHP scripts to Apache-Test. so, now you can have

t/foo.t
t/bar.php
t/response/TestPHP/baz.php


all within the same t/ directory.

the perl script t/foo.t will run using perl, just like always. t/bar.php will run using the php command-line interpreter, while t/response/TestPHP/baz.php will run via PHP within the Apache runtime (through standard Apache-Test magic). and all are executed with a simple make test and tabulated on the command line like you would expect.

Geoff also provides an example t/foo.php:

<?php 

require 'test-more.php';

plan(1);

diag('this is a php test');

is('php', 'perl', 'something php passed');

?>

This is a really great testing framework for PHP that I hope keeps getting more and more attention.

Read: Apache-Test for the PHP CLI

Topic: IPC2k5SE - Sessions are up! Previous Topic   Next Topic Topic: Session Riding

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use