We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0da12cc + 5071503 commit aad51c0Copy full SHA for aad51c0
tests/unit/Framework/Exception/ExceptionTest.php
@@ -13,16 +13,13 @@ class ExceptionTest extends TestCase
13
{
14
public function testExceptionSleep(): void
15
16
- $exception = new Exception();
+ $actual = (new Exception)->__sleep();
17
18
- $expectedArray = [
19
- 'serializableTrace',
20
- 'message',
21
- 'code',
22
- 'file',
23
- 'line',
24
- ];
25
-
26
- $this->assertSame($expectedArray, $exception->__sleep());
+ $this->assertCount(5, $actual);
+ $this->assertContains('serializableTrace', $actual);
+ $this->assertContains('message', $actual);
+ $this->assertContains('code', $actual);
+ $this->assertContains('file', $actual);
+ $this->assertContains('line', $actual);
27
}
28
0 commit comments