Skip to content

Commit ff9dfb3

Browse files
committed
Update CustomExceptionsTest.php
1 parent c139130 commit ff9dfb3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/framework/tests/Unit/CustomExceptionsTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ public function testParseExceptionWithTxtExtension()
136136
$this->assertSame("Invalid data in file: 'example.txt'", $exception->getMessage());
137137
}
138138

139+
public function testParseExceptionWithJsonExtension()
140+
{
141+
$exception = new ParseException('example.json');
142+
143+
$this->assertSame("Invalid Json in file: 'example.json'", $exception->getMessage());
144+
}
145+
139146
public function testParseExceptionWithUnsupportedExtension()
140147
{
141148
$exception = new ParseException('example.foo');

0 commit comments

Comments
 (0)