assertEquals([], $executionResult->toArray()); } public function testToArrayExtensions() : void { $executionResult = new ExecutionResult(null, [], ['foo' => 'bar']); $this->assertEquals(['extensions' => ['foo' => 'bar']], $executionResult->toArray()); $executionResult->extensions = ['bar' => 'foo']; $this->assertEquals(['extensions' => ['bar' => 'foo']], $executionResult->toArray()); } }