Re: Writing PHPT tests

From: Date: Sat, 02 Feb 2008 19:57:12 +0000
Subject: Re: Writing PHPT tests
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-35110@lists.php.net to get a copy of this message
You simply ignored my email or never got it? The correct place for such scripts is not in the "root" but in scripts/dev/ --Jani zoe kirjoitti:
Hi - for any of you that are writing PHPT tests for existing extensions - I put a PHP script called generate_phpt.php into PHP 5.3 yesterday which might help a little. It's quite a simple command line script (Raghu and I wrote it last year), it works by looking at the {{{proto line for a function in PHP source code and construct a test case frame from it. It can be used to construct very simple tests cases - or to turn an existing PHP file into PHPT format. It doesn't try and guess what the results of a test should be :-). I will document it properly on qa.php.net later. In the meantime: php generate_phpt.php --help tells you what it's supposed to do. Zoe PS - It doesn't work for PHP6 right now because the {{{proto line is different.


« previous php.internals (#35110) next »