assertSame( FinanceLedgerAccountShouldKeep::TEMPORARY, FinanceLedgerAccountShouldKeep::display(null, '不保留'), ); $this->assertSame('暂时保留', FinanceLedgerAccountShouldKeep::label(null, '不保留')); } public function test_explicit_not_retained_overrides_company_plan(): void { $this->assertSame( FinanceLedgerAccountShouldKeep::NO, FinanceLedgerAccountShouldKeep::display('否', '不保留'), ); $this->assertSame('不保留', FinanceLedgerAccountShouldKeep::label('否', '不保留')); } public function test_temporary_retention_remains_a_retained_state(): void { $this->assertSame( FinanceLedgerAccountShouldKeep::TEMPORARY, FinanceLedgerAccountShouldKeep::normalize('暂时保留'), ); $this->assertSame('暂时保留', FinanceLedgerAccountShouldKeep::label('暂时保留', '保留')); } }