Skip to content

Commit

Permalink
chore: add doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
yalsicor committed Sep 12, 2024
1 parent 9ece34d commit 91637bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ protected function ddDatabaseQueries(): void

/**
* Assert the number of database queries.
* @param int $expectedCount
*/
protected function assertDatabaseQueriesCount(int $expectedCount): void

Check warning on line 53 in src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php

View check run for this annotation

Codecov / codecov/patch

src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php#L53

Added line #L53 was not covered by tests
{
Expand All @@ -57,6 +58,8 @@ protected function assertDatabaseQueriesCount(int $expectedCount): void

/**
* Wrapper to profile database queries.
* @param callable $callback
* @return mixed
*/
protected function profileDatabaseQueries(callable $callback): mixed

Check warning on line 64 in src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php

View check run for this annotation

Codecov / codecov/patch

src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php#L64

Added line #L64 was not covered by tests
{
Expand All @@ -69,6 +72,9 @@ protected function profileDatabaseQueries(callable $callback): mixed

/**
* Wrapper to profile database queries and assert the number of queries.
* @param int $expectedCount
* @param callable $callback
* @return mixed
*/
protected function profileDatabaseQueriesCount(int $expectedCount, callable $callback): mixed

Check warning on line 79 in src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php

View check run for this annotation

Codecov / codecov/patch

src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php#L79

Added line #L79 was not covered by tests
{
Expand Down

0 comments on commit 91637bf

Please sign in to comment.