dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the phan exit code directly
[lhc/web/wiklou.git]
/
tests
/
parser
/
TestFileReader.php
diff --git
a/tests/parser/TestFileReader.php
b/tests/parser/TestFileReader.php
index
6279d68
..
b6e811b
100644
(file)
--- a/
tests/parser/TestFileReader.php
+++ b/
tests/parser/TestFileReader.php
@@
-130,12
+130,15
@@
class TestFileReader {
'input' => $data[$input],
'options' => $data['options'],
'config' => $data['config'],
'input' => $data[$input],
'options' => $data['options'],
'config' => $data['config'],
+ 'line' => $this->sectionLineNum['test'],
+ 'file' => $this->file
];
if ( $nonTidySection !== false ) {
// Add non-tidy test
$this->tests[] = [
'result' => $data[$nonTidySection],
];
if ( $nonTidySection !== false ) {
// Add non-tidy test
$this->tests[] = [
'result' => $data[$nonTidySection],
+ 'resultSection' => $nonTidySection
] + $commonInfo;
if ( $tidySection !== false ) {
] + $commonInfo;
if ( $tidySection !== false ) {
@@
-143,13
+146,16
@@
class TestFileReader {
$this->tests[] = [
'desc' => $data['test'] . ' (with tidy)',
'result' => $data[$tidySection],
$this->tests[] = [
'desc' => $data['test'] . ' (with tidy)',
'result' => $data[$tidySection],
+ 'resultSection' => $tidySection,
'options' => $data['options'] . ' tidy',
'options' => $data['options'] . ' tidy',
+ 'isSubtest' => true,
] + $commonInfo;
}
} elseif ( $tidySection !== false ) {
// No need to override desc when there is no subtest
$this->tests[] = [
'result' => $data[$tidySection],
] + $commonInfo;
}
} elseif ( $tidySection !== false ) {
// No need to override desc when there is no subtest
$this->tests[] = [
'result' => $data[$tidySection],
+ 'resultSection' => $tidySection,
'options' => $data['options'] . ' tidy'
] + $commonInfo;
} else {
'options' => $data['options'] . ' tidy'
] + $commonInfo;
} else {
@@
-258,7
+264,6
@@
class TestFileReader {
$this->sectionLineNum = [];
$this->sectionData = [];
$this->section = null;
$this->sectionLineNum = [];
$this->sectionData = [];
$this->section = null;
-
}
/**
}
/**