|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-29 07:14 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: krakjoe
[2013-10-29 07:14 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 00:00:02 2025 UTC |
Description: ------------ Seems to me it would be great if the php5 command line tool ('php') had an option to run a static main() method of a specified class just like java does: eg: php -run TTester TObject.php [args] Which would call the main() in TTester: TObjectToTest.php: class TObjectToTest { // ... class that we'll want to test } class TTester { public static main($args) { // execute tests on TObjectToTest } } This would be particularly good for making it easy to bundle and run tests on each individual php file. Thoughts?