Skip to content

Commit

Permalink
Make test case easier to indentify
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Jan 22, 2022
1 parent de2b2ef commit 6cb3867
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/Functional/Schema/ComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
use Doctrine\DBAL\Tests\FunctionalTestCase;

use function array_merge;
use function sprintf;
use function var_export;

class ComparatorTest extends FunctionalTestCase
{
Expand Down Expand Up @@ -44,14 +46,19 @@ public function testDefaultValueComparison(callable $comparatorFactory, string $
*/
public static function defaultValueProvider(): iterable
{
foreach (ComparatorTestUtils::comparatorProvider() as $comparatorArguments) {
foreach (ComparatorTestUtils::comparatorProvider() as $comparatorType => $comparatorArguments) {
foreach (
[
['integer', 1],
['boolean', false],
] as $testArguments
) {
yield array_merge($comparatorArguments, $testArguments);
yield sprintf(
'%s with default %s value %s',
$comparatorType,
$testArguments[0],
var_export($testArguments[1], true)
) => array_merge($comparatorArguments, $testArguments);
}
}
}
Expand Down

0 comments on commit 6cb3867

Please sign in to comment.