Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ if (true) {
if (file_exists(__FILE__) === true) {

}

// Intentional parse error/live coding.
// This needs to be the last test in the file.
if(true
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php

// Intentional parse error. Live coding resilience.
if(true
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,23 @@ public function getErrorList()
* The key of the array should represent the line number and the value
* should represent the number of warnings that should occur on that line.
*
* @param string $testFile The name of the file being tested.
*
* @return array<int, int>
*/
public function getWarningList()
public function getWarningList($testFile='')
{
return [
3 => 1,
5 => 1,
7 => 1,
];
switch ($testFile) {
case 'UnconditionalIfStatementUnitTest.1.inc':
return [
3 => 1,
5 => 1,
7 => 1,
];

default:
return [];
}//end switch

}//end getWarningList()

Expand Down