assertSame( [ 'Contact' => 'contact', 'Company' => 'company', ], $collection->toChoices() ); } public function testToChoicesWithoutObjects(): void { $collection = new ObjectCollection(); $this->assertSame([], $collection->toChoices()); } }