Skip to content

Commit

Permalink
Adding profiler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mamazu committed Mar 9, 2025
1 parent b998f49 commit c384477
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ProfilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public function setUp(): void
$registry = $this->getMockBuilder(ManagerRegistry::class)->getMock();
$registry->method('getConnectionNames')->willReturn([]);
$registry->method('getManagerNames')->willReturn([]);
$registry->method('getManagers')->willReturn([]);
$this->collector = new DoctrineDataCollector($registry, true, $this->debugDataHolder);

$twigLoaderFilesystem = new FilesystemLoader(__DIR__ . '/../templates/Collector');
Expand Down Expand Up @@ -120,5 +119,8 @@ public function testRender(): void
'.*',
preg_quote('SELECT * FROM foo WHERE bar IN ( ? , ? )'),
) . '/', $output));

$this->assertStringContainsString("Managed entities", $output);

Check failure on line 123 in tests/ProfilerTest.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (PHP: 8.3)

String "Managed entities" does not require double quotes; use single quotes instead
$this->assertStringContainsString("No managed entities.", $output);

Check failure on line 124 in tests/ProfilerTest.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (PHP: 8.3)

String "No managed entities." does not require double quotes; use single quotes instead
}
}

0 comments on commit c384477

Please sign in to comment.