Skip to content

Commit

Permalink
Fix codestyle with use statements for new XmlMapping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Venet committed Apr 11, 2022
1 parent 9848270 commit bf41a9f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/Doctrine/Tests/ORM/Mapping/XmlMappingDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
use Doctrine\Tests\Models\ValueObjects\Name;
use Doctrine\Tests\Models\ValueObjects\Person;
use DOMDocument;
use Generator;
use Throwable;

use function array_filter;
use function array_map;
Expand All @@ -30,6 +32,7 @@
use function in_array;
use function is_array;
use function pathinfo;
use function sprintf;

use const DIRECTORY_SEPARATOR;
use const PATHINFO_FILENAME;
Expand Down Expand Up @@ -207,15 +210,15 @@ public function testValidateIncorrectXmlSchema(string $xmlMappingFile, string $e
try {
$dom->load($xmlMappingFile);
$dom->schemaValidate($xsdSchemaFile);
} catch (\Throwable $t) {
} catch (Throwable $t) {
self::assertEquals($expectedExceptionMessage, $t->getMessage());
}
}

/**
* @psalm-return \Generator<array<string, string>>
* @psalm-return Generator<array<string, string>>
*/
public static function dataInvalidSchema(): \Generator
public static function dataInvalidSchema(): Generator
{
$invalidMappingsData = [
[
Expand Down

0 comments on commit bf41a9f

Please sign in to comment.