Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14110830
D17189.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
749 B
Referenced Files
None
Subscribers
None
D17189.diff
View Options
diff --git a/src/utils/__tests__/PhutilUtilsTestCase.php b/src/utils/__tests__/PhutilUtilsTestCase.php
--- a/src/utils/__tests__/PhutilUtilsTestCase.php
+++ b/src/utils/__tests__/PhutilUtilsTestCase.php
@@ -584,8 +584,7 @@
}
$invalid_cases = array(
- '[' =>
- 'syntax error, unexpected $end, expecting \']\' in Unknown on line 1',
+ '[' => new PhutilINIParserException(),
);
foreach ($invalid_cases as $input => $expect) {
@@ -595,8 +594,7 @@
} catch (Exception $ex) {
$caught = $ex;
}
- $this->assertTrue($caught instanceof PhutilINIParserException);
- $this->assertEqual($expect, $caught->getMessage());
+ $this->assertTrue($caught instanceof $expect);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 7:15 PM (20 h, 23 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6801875
Default Alt Text
D17189.diff (749 B)
Attached To
Mode
D17189: Stop hardcoding the YACC error message
Attached
Detach File
Event Timeline
Log In to Comment