diff options
author | Christoph M. Becker <cmb@php.net> | 2015-08-13 20:33:59 +0200 |
---|---|---|
committer | Christoph M. Becker <cmb@php.net> | 2015-08-13 20:33:59 +0200 |
commit | f9744a36a229c1647ca7a1dc7aa0dcb9edbc7793 (patch) | |
tree | d22aba83b8c63a8789e6dc0b9767f0d08bd02475 /scripts/dev | |
parent | 66866fb8388fb9bc0585944913dad3fb18f8b8bd (diff) | |
parent | 1e4742d5cd23f8766be0e1ecd6414628f71060ce (diff) | |
download | php-git-f9744a36a229c1647ca7a1dc7aa0dcb9edbc7793.tar.gz |
Merge branch 'pull-request/1454'
* pull-request/1454:
Docs for find_tested.php
Diffstat (limited to 'scripts/dev')
-rw-r--r-- | scripts/dev/find_tested.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/dev/find_tested.php b/scripts/dev/find_tested.php index e841e2e959..0881e9ea47 100644 --- a/scripts/dev/find_tested.php +++ b/scripts/dev/find_tested.php @@ -68,7 +68,10 @@ get_phpt_files($extension_test_path, $count, $phpt_files); $extension_method_info = mark_methods_as_tested($extension_method_info, $phpt_files); - +/** + * The loop to ouput the test coverage info + * Should output: Extension, Class Name, Method/Function Name, Test Status, Test Files + */ foreach($extension_method_info as $record) { echo $record[EXTENSION_NAME] . ","; echo $record[CLASS_NAME] . ","; @@ -193,11 +196,14 @@ function get_phpt_files($dir, &$phpt_file_count, &$all_phpt) } } -function extract_tests($file) { +/** + * Extract tests from a specified file, returns an array of tested function tokens + */ +function extract_tests($file) { $code = file_get_contents($file); if (!preg_match('/--FILE--\s*(.*)\s*--(EXPECTF|EXPECTREGEX|EXPECT)?--/is', $code, $r)) { -// print "Unable to get code in ".$file."\n"; + //print "Unable to get code in ".$file."\n"; return array(); } |