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