title = $title; } /** * @return Collection */ public function collection() { $collection = new Collection; for ($i = 0; $i < 100; $i++) { $row = new Collection(); for ($j = 0; $j < 5; $j++) { $row[] = $this->title() . '-' . $i . '-' . $j; } $collection->push($row); } return $collection; } /** * @return string */ public function title(): string { return $this->title; } /** * @param BeforeWriting $event */ public static function beforeWriting(BeforeWriting $event) { TestCase::assertInstanceOf(Writer::class, $event->writer); } }