seeder = new Preset([ ['foo', 14, 0.72], ['bar', 16, 0.92], ['beer', 21, 1.26], ]); } /** * @test */ public function build() : void { $this->assertInstanceOf(Preset::class, $this->seeder); $this->assertInstanceOf(Seeder::class, $this->seeder); } /** * @test */ public function seed() : void { $expected = [ ['foo', 14, 0.72], ['bar', 16, 0.92], ['beer', 21, 1.26], ]; $seeds = $this->seeder->seed(Unlabeled::quick([['beef', 4, 13.0]]), 3); $this->assertCount(3, $seeds); $this->assertEquals($expected, $seeds); } }