Changeset View
Changeset View
Standalone View
Standalone View
src/parser/xhpast/__tests__/PHPASTParserTestCase.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | foreach ($options as $key => $value) { | ||||
'test outcomes.', | 'test outcomes.', | ||||
$name)); | $name)); | ||||
} | } | ||||
$type = $key; | $type = $key; | ||||
break; | break; | ||||
case 'comment': | case 'comment': | ||||
// Human readable comment providing test case information. | // Human readable comment providing test case information. | ||||
break; | break; | ||||
case 'rtrim': | |||||
// Allows construction of tests which rely on EOF without newlines. | |||||
$body = rtrim($body); | |||||
break; | |||||
default: | default: | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Test file "%s" has unknown option "%s" in its options '. | 'Test file "%s" has unknown option "%s" in its options '. | ||||
'string.', | 'string.', | ||||
$name, | $name, | ||||
$key)); | $key)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |