Skip to content

Commit f9744a3

Browse files
committed
Merge branch 'pull-request/1454'
* pull-request/1454: Docs for find_tested.php
2 parents 66866fb + 1e4742d commit f9744a3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

scripts/dev/find_tested.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@
6868

6969
$extension_method_info = mark_methods_as_tested($extension_method_info, $phpt_files);
7070

71-
71+
/**
72+
* The loop to ouput the test coverage info
73+
* Should output: Extension, Class Name, Method/Function Name, Test Status, Test Files
74+
*/
7275
foreach($extension_method_info as $record) {
7376
echo $record[EXTENSION_NAME] . ",";
7477
echo $record[CLASS_NAME] . ",";
@@ -193,11 +196,14 @@ function get_phpt_files($dir, &$phpt_file_count, &$all_phpt)
193196
}
194197
}
195198

196-
function extract_tests($file) {
199+
/**
200+
* Extract tests from a specified file, returns an array of tested function tokens
201+
*/
202+
function extract_tests($file) {
197203
$code = file_get_contents($file);
198204

199205
if (!preg_match('/--FILE--\s*(.*)\s*--(EXPECTF|EXPECTREGEX|EXPECT)?--/is', $code, $r)) {
200-
// print "Unable to get code in ".$file."\n";
206+
//print "Unable to get code in ".$file."\n";
201207
return array();
202208
}
203209

0 commit comments

Comments
 (0)