/* $Id: README.txt,v 1.1.2.3 2008-12-04 02:43:46 sun Exp $ */ -- SUMMARY -- Code Format unit tests These files are implementations for the SimpleTest Drupal module. There is a bit of custom code here to make things go as smoothly as possible, and a little bit of necessary setup. Here's what you'll need: -- REQUIREMENTS -- * SimpleTest module, along with the patch in http://drupal.org/node/211823 * SimpleTest Framework https://sourceforge.net/project/showfiles.php?group_id=76550 * Text_Diff package from PEAR http://pear.php.net/package/Text_Diff -- INSTALLATION -- * If not already done, install SimpleTest module and SimpleTest framework as usual. * Apply above mentioned patch to SimpleTest module. See http://drupal.org/patch/apply for further information. FYI: This patch fixes some incompatibilities with our heavy OOP testing framework for coder_format. It should not break other tests. * Download the Text_Diff package from PEAR into this directory, i.e. scripts/coder_format/tests/ and extract the archive, and rename the folder from "Text_Diff-0.x.x" to "Text". * If not already done, go to admin/build/modules, and enable Coder module. -- USAGE -- * Go to admin/build/simpletest, and select Coder Format Tests, and run tests. -- CUSTOMIZATIONS -- Currently, only the all.test is implemented, which is used to test the overall output of coder_format_string_all(). Appropriate .phpt test files are located in the sub-directory all/. The internal format for coder_format tests is: TEST: Name of test --INPUT-- // PHP code to input --EXPECT-- // Coder cleaned code expected Note that