mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 16:45:02 +02:00
refactor: FormatFactory (#2832)
This commit is contained in:
parent
e9b8a1f9f9
commit
af5648d928
5 changed files with 40 additions and 124 deletions
|
@ -53,7 +53,6 @@ abstract class BaseFormatTest extends TestCase {
|
|||
|
||||
protected function formatData(string $formatName, \stdClass $sample): string {
|
||||
$formatFac = new FormatFactory();
|
||||
$formatFac->setWorkingDir(PATH_LIB_FORMATS);
|
||||
$format = $formatFac->create($formatName);
|
||||
$format->setItems($sample->items);
|
||||
$format->setExtraInfos($sample->meta);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue