Skip to content

Commit aad51c0

Browse files
Merge branch '8.5' into 9.5
2 parents 0da12cc + 5071503 commit aad51c0

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

tests/unit/Framework/Exception/ExceptionTest.php

+7-10
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@ class ExceptionTest extends TestCase
1313
{
1414
public function testExceptionSleep(): void
1515
{
16-
$exception = new Exception();
16+
$actual = (new Exception)->__sleep();
1717

18-
$expectedArray = [
19-
'serializableTrace',
20-
'message',
21-
'code',
22-
'file',
23-
'line',
24-
];
25-
26-
$this->assertSame($expectedArray, $exception->__sleep());
18+
$this->assertCount(5, $actual);
19+
$this->assertContains('serializableTrace', $actual);
20+
$this->assertContains('message', $actual);
21+
$this->assertContains('code', $actual);
22+
$this->assertContains('file', $actual);
23+
$this->assertContains('line', $actual);
2724
}
2825
}

0 commit comments

Comments
 (0)