assertSame(['waybill' => 0, 'amount' => 9, 'weight' => 3], array_intersect_key($columns, array_flip(['waybill', 'amount', 'weight']))); } public function test_single_amount_header_is_unchanged(): void { $this->assertSame(2, BillParser::findColumns(['运单号', '计费重量', '运费', '备注'])['amount']); $this->assertSame(0, BillParser::findColumns(['运单号', '运费', '运单号'])['waybill']); } }