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); } }