PHPUnit Started (PHPUnit 10.5.63 using PHP 8.1.10 (cli) on WINNT)
Test Runner Configured
Bootstrap Finished (C:\laragon\www\grifo\vendor/autoload.php)
Test Suite Loaded (12 tests)
Event Facade Sealed
Test Runner Started
Test Suite Sorted
Test Suite Filtered (1 test)
Test Runner Execution Started (1 test)
Test Suite Started (C:\laragon\www\grifo\phpunit.xml, 1 test)
Test Suite Started (Feature, 1 test)
Test Suite Started (Tests\Feature\DiferenciasIndexFiltersTest, 1 test)
Test Preparation Started (Tests\Feature\DiferenciasIndexFiltersTest::test_diferencias_index_filters_by_date_user_and_turno)
Before Test Method Called (Tests\Feature\DiferenciasIndexFiltersTest::setUp)
Before Test Method Finished:
- Tests\Feature\DiferenciasIndexFiltersTest::setUp
Test Prepared (Tests\Feature\DiferenciasIndexFiltersTest::test_diferencias_index_filters_by_date_user_and_turno)
Assertion Succeeded (Constraint: is identical to 200, Value: 200, Message: Expected response status code [200] but received 200.)
Assertion Succeeded (Constraint: contains "Filtro" [ASCII](length: 6), Value: '<!DOCTYPE html>\r\n
<html lang="es">\r\n
<head>\r\n
    <meta charset="UTF-8">\r\n
    <meta name="viewport" content="width=device-width, initial-scale=1.0">\r\n
    <title>Mantenimiento</title>\r\n
    <style>\r\n
        body { font-family: Arial, sans-serif; background: #f8fafc; margin: 0; padding: 24px; }\r\n
        .container { max-width: 1100px; margin: 0 auto; background: #fff; padding: 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }\r\n
        .topbar-shell { position: sticky; top: 0; z-index: 10; background: #fff; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; margin-bottom: 14px; }\r\n
        .top { display:flex; justify-content: space-between; align-items:center; gap: 12px; flex-wrap: wrap; }\r\n
        .top-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }\r\n
        .user-chip { display:inline-flex; align-items:center; gap:8px; background:#eff6ff; border:1px solid #bfdbfe; color:#1e3a8a; padding:8px 12px; border-radius:999px; font-weight:700; font-size:13px; white-space:nowrap; }\r\n
        .user-icon { width:24px; height:24px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:#dbeafe; font-size:14px; }\r\n
        a { color: #0f172a; }\r\n
        .btn { display:inline-block; padding: 10px 14px; border-radius: 10px; text-decoration:none; border:1px solid #e2e8f0; background:#f1f5f9; }\r\n
        .btn.primary { background:#ef4444; border-color:#ef4444; color:#fff; }\r\n
        .btn.danger { background:#dc2626; border-color:#dc2626; color:#fff; }\r\n
        table { width:100%; border-collapse: collapse; }\r\n
        th, td { border-bottom: 1px solid #e5e7eb; padding: 10px 8px; text-align:left; font-size: 14px; }\r\n
        th { background:#f8fafc; }\r\n
        .row-actions { display:flex; gap:8px; flex-wrap: wrap; }\r\n
        .flash { background:#dcfce7; border:1px solid #86efac; color:#166534; padding:10px; border-radius: 10px; margin-bottom: 12px; }\r\n
        .nav-back { margin-bottom: 12px; }\r\n
        .nav-back .btn { padding: 8px 12px; }\r\n
    </style>\r\n
</head>\r\n
<body>\r\n
<div class="container">\r\n
    <div class="topbar-shell">\r\n
        <div class="top">\r\n
            <div>\r\n
                <h2 style="margin:0">Mantenimiento</h2>\r\n
                <div style="color:#475569;font-size:13px"></div>\r\n
            </div>\r\n
            <div class="top-actions">\r\n
                <div class="user-chip" title="Usuario logueado">\r\n
                    <span class="user-icon">­ƒæñ</span>\r\n
                    <span>Ana Perez</span>\r\n
                </div>\r\n
                <a class="btn" href="http://localhost/dashboard">Volver al dashboard</a>\r\n
                <form method="POST" action="http://localhost/logout" style="margin:0">\r\n
                    <input type="hidden" name="_token" value="Mj2G8x5LOexz149O8fxfhq63JksKRSVqG4cmwqkA" autocomplete="off">                    <button class="btn danger" type="submit">Cerrar sesi├│n</button>\r\n
                </form>\r\n
            </div>\r\n
        </div>\r\n
    </div>\r\n
\r\n
    \r\n
    \r\n
    <div class="nav-back">\r\n
            </div>\r\n
\r\n
        <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;">\r\n
    <h2 style="margin:0;">Diferencias</h2>\r\n
    <a href="http://localhost/diferencias/create" style="background:#2563eb;color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none;">Nueva diferencia</a>\r\n
</div>\r\n
\r\n
\r\n
<form method="GET" action="http://localhost/diferencias" style="display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:12px;">\r\n
    <div>\r\n
        <label style="display:block;font-weight:700;margin-bottom:6px;font-size:13px;">Fecha desde</label>\r\n
        <input type="date" name="fecha_desde" value="2026-06-01" style="width:100%;padding:10px;border:1px solid #e2e8f0;border-radius:8px;">\r\n
    </div>\r\n
    <div>\r\n
        <label style="display:block;font-weight:700;margin-bottom:6px;font-size:13px;">Fecha hasta</label>\r\n
        <input type="date" name="fecha_hasta" value="2026-06-03" style="width:100%;padding:10px;border:1px solid #e2e8f0;border-radius:8px;">\r\n
    </div>\r\n
    <div>\r\n
        <label style="display:block;font-weight:700;margin-bottom:6px;font-size:13px;">Turno</label>\r\n
        <select name="id_turno" style="width:100%;padding:10px;border:1px solid #e2e8f0;border-radius:8px;">\r\n
            <option value="">Todos</option>\r\n
                            <option value="1" selected>Ma├▒ana</option>\r\n
                    </select>\r\n
    </div>\r\n
    <div>\r\n
        <label style="display:block;font-weight:700;margin-bottom:6px;font-size:13px;">Usuario</label>\r\n
        <select name="id_usuario" style="width:100%;padding:10px;border:1px solid #e2e8f0;border-radius:8px;">\r\n
            <option value="">Todos</option>\r\n
                            <option value="1" selected>Ana Perez</option>\r\n
                    </select>\r\n
    </div>\r\n
    <div style="display:flex;align-items:end;gap:8px;">\r\n
        <button type="submit" class="btn primary" style="padding:10px 14px;border-radius:8px;border:none;background:#2563eb;color:#fff;cursor:pointer;">Filtrar</button>\r\n
        <a href="http://localhost/diferencias" class="btn" style="padding:10px 14px;border-radius:8px;text-decoration:none;background:#f1f5f9;border:1px solid #e2e8f0;">Limpiar</a>\r\n
    </div>\r\n
</form>\r\n
\r\n
<div style="overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:10px;">\r\n
    <table style="width:100%;border-collapse:collapse;">\r\n
        <thead style="background:#f8fafc;">\r\n
            <tr>\r\n
                <th style="text-align:left;padding:10px;border-bottom:1px solid #e5e7eb;">ID</th>\r\n
                <th style="text-align:left;padding:10px;border-bottom:1px solid #e5e7eb;">Usuario</th>\r\n
                <th style="text-align:left;padding:10px;border-bottom:1px solid #e5e7eb;">Observaci├│n</th>\r\n
                <th style="text-align:left;padding:10px;border-bottom:1px solid #e5e7eb;">Turno</th>\r\n
                <th style="text-align:left;padding:10px;border-bottom:1px solid #e5e7eb;">Tipo combustible</th>\r\n
                <th style="text-align:right;padding:10px;border-bottom:1px solid #e5e7eb;">Galones</th>\r\n
                <th style="text-align:right;padding:10px;border-bottom:1px solid #e5e7eb;">Precio</th>\r\n
                <th style="text-align:right;padding:10px;border-bottom:1px solid #e5e7eb;">Total</th>\r\n
                <th style="text-align:center;padding:10px;border-bottom:1px solid #e5e7eb;">Estado</th>\r\n
                <th style="text-align:center;padding:10px;border-bottom:1px solid #e5e7eb;">Acciones</th>\r\n
            </tr>\r\n
        </thead>\r\n
        <tbody>\r\n
                            <tr>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;">1</td>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;">ana_6a20a4da2f347</td>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;">Filtro</td>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;">Ma├▒ana</td>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;">Regular</td>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;text-align:right;">1.000</td>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;text-align:right;">10.00</td>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;text-align:right;">10.00</td>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;text-align:center;">\r\n
                                                    <span style="padding:4px 8px;border-radius:999px;background:#dcfce7;color:#166534;">Activo</span>\r\n
                                            </td>\r\n
                    <td style="padding:10px;border-bottom:1px solid #f1f5f9;text-align:center;">\r\n
                        <a href="http://localhost/diferencias/1/edit" style="color:#2563eb;text-decoration:none;margin-right:8px;">Editar</a>\r\n
                        <form method="POST" action="http://localhost/diferencias/1" style="display:inline;" onsubmit="return confirm('┬┐Eliminar este registro?')">\r\n
                            <input type="hidden" name="_token" value="Mj2G8x5LOexz149O8fxfhq63JksKRSVqG4cmwqkA" autocomplete="off">                            <input type="hidden" name="_method" value="DELETE">                            <button type="submit" style="border:none;background:transparent;color:#dc2626;cursor:pointer;">Eliminar</button>\r\n
                        </form>\r\n
                    </td>\r\n
                </tr>\r\n
                    </tbody>\r\n
    </table>\r\n
</div>\r\n
</div>\r\n
</body>\r\n
</html>\r\n
\r\n
\r\n
')
Test Passed (Tests\Feature\DiferenciasIndexFiltersTest::test_diferencias_index_filters_by_date_user_and_turno)
After Test Method Called (Tests\Feature\DiferenciasIndexFiltersTest::tearDown)
After Test Method Finished:
- Tests\Feature\DiferenciasIndexFiltersTest::tearDown
Test Finished (Tests\Feature\DiferenciasIndexFiltersTest::test_diferencias_index_filters_by_date_user_and_turno)
After Last Test Method Called (Tests\Feature\DiferenciasIndexFiltersTest::tearDownAfterClass)
After Last Test Method Finished:
- Tests\Feature\DiferenciasIndexFiltersTest::tearDownAfterClass
Test Suite Finished (Tests\Feature\DiferenciasIndexFiltersTest, 1 test)
Test Suite Finished (Feature, 1 test)
Test Suite Finished (C:\laragon\www\grifo\phpunit.xml, 1 test)
Test Runner Execution Finished

   PASS  Tests\Feature\DiferenciasIndexFiltersTest
  Ô£ô diferencias index filters by date user and turno                     3.11s  

  Tests:    1 passed (2 assertions)
  Duration: 3.31s

Test Runner Finished
PHPUnit Finished (Shell Exit Code: 0)
