Skip to content

Commit

Permalink
Fix dynamic mock object class name
Browse files Browse the repository at this point in the history
  • Loading branch information
kreemer committed Dec 6, 2023
1 parent 1373a13 commit 7f59518
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
php: [ '8.1', '8.2' ]
symfony: [ '6.3' ]
symfony: [ '6.3', '6.4', '7.0' ]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -43,4 +43,4 @@ jobs:
composer update --prefer-dist --no-progress
- name: Run tests
run: vendor/bin/phpunit --coverage-text
run: vendor/bin/phpunit --coverage-text
4 changes: 2 additions & 2 deletions tests/Service/Info/Collector/DoctrineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ public function databaseInformationIsDisplayed(): void
self::assertIsArray($array['default']);

self::assertArrayHasKey('type', $array['default']);
self::assertStringStartsWith('Mock_AbstractPlatform_', $array['default']['type']);
self::assertEquals(get_class($databasePlatform), $array['default']['type']);

self::assertArrayHasKey('database', $array['default']);
self::assertNull($array['default']['database']);

self::assertArrayHasKey('driver', $array['default']);
self::assertStringStartsWith('Mock_Driver_', $array['default']['driver']);
self::assertEquals(get_class($driver), $array['default']['driver']);
}
}

0 comments on commit 7f59518

Please sign in to comment.