scan(); $this->assertCount(5, $songs); $combinations = map(fn(ScannedSong $song) => [$song->artist, $song->album, $song->title], $songs); $this->assertContains(['Band A', 'Album A', 'Song 1'], $combinations); $this->assertContains(['Band A', 'Album A', 'Song 2'], $combinations); $this->assertContains(['Band A', 'Album B', 'Song 1'], $combinations); $this->assertContains(['Band B', 'Album A', 'Song 1'], $combinations); } }