
   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_generates_invoice_numbers_with_correct_format(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_generates_unique_invoice_numbers(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_generates_transaction_ids_with_custom_prefix(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_generates_transaction_ids_with_default_prefix(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_calculates_invoice_totals_correctly(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_calculates_totals_with_zero_tax(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_handles_empty_items_array(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_preserves_item_data_in_totals(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_handles_large_quantities_and_prices(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   WARN  Metadata found in doc-comment for method Tests\Unit\FinanceServiceTest::it_sets_null_vehicle_id_when_not_provided(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.

   FAIL  Tests\Unit\FinanceServiceTest
  Γ£ô it generates invoiceΓÇª  0.04s  
  Γ£ô it generates unique invoice numbers
  Γ£ô it generates transaction ids with custom prefix
  Γ£ô it generates transaction ids with default prefix
  Γ¿» it calculates invoiceΓÇª 0.01s  
  Γ£ô it calculates totals with zero tax
  Γ£ô it handles empty items array
  Γ¿» it preserves item data in totals
  Γ¿» it handles large quantities and prices
  Γ£ô it sets null vehicle id when not provided
  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ  
   FAILED  Tests\Unit\FinanceSΓÇª   
  Failed asserting that 126.00000000000001 matches expected 126.

  at tests\Unit\FinanceServiceTest.php:67
     63Γûò         // Subtotal: (1*200) + (2*350) = 200 + 700 = 900
     64Γûò         $this->assertEquals(900, $result['subtotal']);
     65Γûò 
     66Γûò         // Tax: (200 * 0.14) + (700 * 0.14) = 28 + 98 = 126
  Γ₧£  67Γûò         $this->assertEquals(126, $result['tax']);
     68Γûò 
     69Γûò         // Total: 900 + 126 = 1026
     70Γûò         $this->assertEquals(1026, $result['total']);
     71Γûò

  1   tests\Unit\FinanceServiceTest.php:67

  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ  
   FAILED  Tests\Unit\FinanceSΓÇª   
  Failed asserting that 700.0000000000001 matches expected 700.

  at tests\Unit\FinanceServiceTest.php:115
    111Γûò         $this->assertEquals(1, $item['quantity']);
    112Γûò         $this->assertEquals(5000, $item['unit_price']);
    113Γûò         $this->assertEquals(5000, $item['total_price']);
    114Γûò         $this->assertEquals(14, $item['tax_rate']);
  Γ₧£ 115Γûò         $this->assertEquals(700, $item['tax_amount']);
    116Γûò         $this->assertEquals('abc-123', $item['vehicle_id']);
    117Γûò     }
    118Γûò 
    119Γûò     /** @test */

  1   tests\Unit\FinanceServiceTest.php:115

  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ  
   FAILED  Tests\Unit\FinanceSΓÇª   
  Failed asserting that 350000.00000000006 matches expected 350000.

  at tests\Unit\FinanceServiceTest.php:129
    125Γûò 
    126Γûò         $result = $this->service->calculateInvoiceTotals($items);
    127Γûò 
    128Γûò         $this->assertEquals(2500000, $result['subtotal']);
  Γ₧£ 129Γûò         $this->assertEquals(350000, $result['tax']);
    130Γûò         $this->assertEquals(2850000, $result['total']);
    131Γûò     }
    132Γûò 
    133Γûò     /** @test */

  1   tests\Unit\FinanceServiceTest.php:129


  Tests:    3 failed, 7 passed (24 assertions)
  Duration: 0.25s

