We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 486c954 + a43b388 commit c4c8eabCopy full SHA for c4c8eab
tests/unit/Framework/Exception/ExceptionTest.php
@@ -22,4 +22,16 @@ public function testExceptionSleep(): void
22
$this->assertContains('file', $actual);
23
$this->assertContains('line', $actual);
24
}
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
+ }
37
0 commit comments