Skip to content

Commit c4c8eab

Browse files
Merge branch '8.5' into 9.6
2 parents 486c954 + a43b388 commit c4c8eab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/unit/Framework/Exception/ExceptionTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,16 @@ public function testExceptionSleep(): void
2222
$this->assertContains('file', $actual);
2323
$this->assertContains('line', $actual);
2424
}
25+
26+
public function testExceptionSerialize(): void
27+
{
28+
$actual = (new Exception)->__serialize();
29+
30+
$this->assertCount(5, $actual);
31+
$this->assertArrayHasKey('serializableTrace', $actual);
32+
$this->assertArrayHasKey('message', $actual);
33+
$this->assertArrayHasKey('code', $actual);
34+
$this->assertArrayHasKey('file', $actual);
35+
$this->assertArrayHasKey('line', $actual);
36+
}
2537
}

0 commit comments

Comments
 (0)