'b']; private const OPTIONS = ['c' => 'd']; /** @var TestPreviewerConfig */ private $subject; public function setUp(): void { $this->subject = new TestPreviewerConfig(self::PROVIDERS, self::OPTIONS); } public function testGetConfig(): void { $this->assertEquals(self::OPTIONS, $this->subject->getOptions()); $this->assertEquals(self::PROVIDERS, $this->subject->getProviders()); $this->assertEquals($this->getSerializedObject(), json_encode($this->subject)); } private function getSerializedObject(): string { return json_encode(['providers' => self::PROVIDERS, 'options' => self::OPTIONS]); } }