getTranslations()); // @phpstan-ignore method.deprecatedClass } public function testGetterAndSetter(): void { $sut = new ThemeJavascriptTranslationsEvent(); // @phpstan-ignore new.deprecatedClass $sut->setTranslation('foo', 'bar'); // @phpstan-ignore method.deprecatedClass $sut->setTranslation('hello', 'world', 'testing'); // @phpstan-ignore method.deprecatedClass $result = $sut->getTranslations(); // @phpstan-ignore method.deprecatedClass self::assertCount(self::COUNTER + 2, $result); self::assertArrayHasKey('foo', $result); self::assertEquals(['bar', 'messages'], $result['foo']); self::assertArrayHasKey('hello', $result); self::assertEquals(['world', 'testing'], $result['hello']); } }