Page MenuHomePhabricator

D17189.diff
No OneTemporary

D17189.diff

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

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)

Event Timeline