@@ -25,7 +25,7 @@ public function testRegistryCanReturnEmptyExporterList(): void
2525 public function testRegistryCanFilterExporterList (): void
2626 {
2727 $ registry = new ExporterRegistry ([
28- new CronTabExporter (),
28+ new CronTabExporter (__DIR__ ),
2929 ]);
3030
3131 $ registry ->filter (static fn (ExporterInterface $ exporter ): bool => $ exporter instanceof CronTabExporter);
@@ -35,7 +35,7 @@ public function testRegistryCanFilterExporterList(): void
3535 public function testRegistryCannotFindExporterWithEmptyList (): void
3636 {
3737 $ registry = new ExporterRegistry ([
38- new CronTabExporter (),
38+ new CronTabExporter (__DIR__ ),
3939 ]);
4040
4141 self ::expectException (InvalidArgumentException::class);
@@ -47,8 +47,8 @@ public function testRegistryCannotFindExporterWithEmptyList(): void
4747 public function testRegistryCannotFindExporterWithMultipleSupportingExporter (): void
4848 {
4949 $ registry = new ExporterRegistry ([
50- new CronTabExporter (),
51- new CronTabExporter (),
50+ new CronTabExporter (__DIR__ ),
51+ new CronTabExporter (__DIR__ ),
5252 ]);
5353
5454 self ::expectException (InvalidArgumentException::class);
@@ -60,7 +60,7 @@ public function testRegistryCannotFindExporterWithMultipleSupportingExporter():
6060 public function testRegistryCanFindExporter (): void
6161 {
6262 $ registry = new ExporterRegistry ([
63- new CronTabExporter (),
63+ new CronTabExporter (__DIR__ ),
6464 ]);
6565
6666 $ exporter = $ registry ->find ('crontab ' );
@@ -70,7 +70,7 @@ public function testRegistryCanFindExporter(): void
7070 public function testRegistryCanReturnCurrentExporter (): void
7171 {
7272 $ registry = new ExporterRegistry ([
73- new CronTabExporter (),
73+ new CronTabExporter (__DIR__ ),
7474 ]);
7575
7676 $ exporter = $ registry ->current ();
0 commit comments