false, 'type' => ButtonType::RequestGeoLocation->value, 'text' => 'Test Button', ]; $resultArray = $button->toArray(); $this->assertSame($expectedArray, $resultArray); } #[Test] public function toArraySerializesCorrectlyWithQuick(): void { $button = new RequestGeoLocationButton('Test Button', true); $expectedArray = [ 'quick' => true, 'type' => ButtonType::RequestGeoLocation->value, 'text' => 'Test Button', ]; $resultArray = $button->toArray(); $this->assertSame($expectedArray, $resultArray); } }