Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a1

Request #11757 Move PhpUnit Tests into new tests dir
Submitted: 2007-08-04 17:32 UTC
From: ashnazg Assigned: ashnazg
Status: Closed Package: PhpDocumentor (version 1.4.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 1.4.1    
Subscription  


 [2007-08-04 17:32 UTC] ashnazg (Chuck Burgess)
Description: ------------ I initially put new PhpUnit test files into Documentation/tests, thinking the PHP files in there were some kind of test files. I now think those files represent "demonstrate the bug" example files, rather than test cases themselves. Plus, file/dir convention in PEAR needs tests in a top-level "tests" dir, so I need to move my PhpUnit test files to there.

Comments

 [2007-08-05 03:38 UTC] ashnazg (Chuck Burgess)
File moves and updates completed. Test suite tested against PHP 5.2 (0-3), 5.1 (0-6), 5.0 (4-5), and 4.4 (0-7) versions. AllTests.php can now be cleanly run from commandline on CVS checkout, and "pear run-tests -up PhpDocumentor" can be cleanly run. Any PHP5 version below 5.1.4 (the minimum for PhpUnit v3) will echo back an informational message and exit, rather than throwing missing file errors due to PhpUnit not being installed (PEAR installer refuses to install it on PHP <v5.1.4). I haven't found a way yet to avoid PHP4 usage throwing syntax errors (they occur on "private static function" in AllTests.php). So, this effort might be enough to put PhpDocumentor's test suite into cweiske's QA CI effort.
 [2007-08-05 12:38 UTC] ashnazg (Chuck Burgess)
cweiske reminded me this morning that his QA CI process expects AllTests.php to also be in tests/ dir...
 [2007-08-05 13:01 UTC] ashnazg (Chuck Burgess)
Got AllTests.php moved into tests/. Running tests via "php tests/AllTests.php" and "pear run-tests -up phpdocumentor" succeed.