File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed
tests/Doctrine/Tests/ORM/Query Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 41
41
- " pdo_sqlite"
42
42
proxy :
43
43
- " common"
44
+ deps :
45
+ - " highest"
44
46
include :
45
47
- php-version : " 8.2"
46
48
dbal-version : " 3@dev"
55
57
dbal-version : " default"
56
58
proxy : " lazy-ghost"
57
59
extension : " pdo_sqlite"
60
+ - php-version : " 8.1"
61
+ dbal-version : " default"
62
+ deps : " lowest"
63
+ extension : " pdo_sqlite"
58
64
59
65
steps :
60
66
- name : " Checkout"
78
84
uses : " ramsey/composer-install@v2"
79
85
with :
80
86
composer-options : " --ignore-platform-req=php+"
87
+ dependency-versions : " ${{ matrix.deps }}"
81
88
82
89
- name : " Run PHPUnit"
83
90
run : " vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml --coverage-clover=coverage-no-cache.xml"
@@ -314,7 +321,6 @@ jobs:
314
321
name : " ${{ github.job }}-${{ matrix.mysql-version }}-${{ matrix.extension }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-coverage"
315
322
path : " coverage*.xml"
316
323
317
-
318
324
upload_coverage :
319
325
name : " Upload coverage to Codecov"
320
326
runs-on : " ubuntu-22.04"
Original file line number Diff line number Diff line change 39
39
"doctrine/coding-standard" : " ^12.0" ,
40
40
"phpbench/phpbench" : " ^1.0" ,
41
41
"phpstan/phpstan" : " 1.10.35" ,
42
- "phpunit/phpunit" : " ^10.0.14 " ,
42
+ "phpunit/phpunit" : " ^10.4.0 " ,
43
43
"psr/log" : " ^1 || ^2 || ^3" ,
44
44
"squizlabs/php_codesniffer" : " 3.7.2" ,
45
45
"symfony/cache" : " ^5.4 || ^6.2" ,
46
- "symfony/var-exporter" : " ^5.4 || ^ 6.2" ,
46
+ "symfony/var-exporter" : " ^6.2.13 " ,
47
47
"vimeo/psalm" : " 5.15.0"
48
48
},
49
49
"suggest" : {
Original file line number Diff line number Diff line change @@ -514,11 +514,14 @@ public function testGetParameterColonNormalize(): void
514
514
515
515
public function testGetQueryCacheDriverWithDefaults (): void
516
516
{
517
- $ cache = $ this ->createMock (CacheItemPoolInterface::class);
517
+ $ cache = $ this ->createMock (CacheItemPoolInterface::class);
518
+ $ cacheItemMock = $ this ->createMock (CacheItemInterface::class);
519
+ $ cacheItemMock ->method ('set ' )->willReturnSelf ();
520
+ $ cacheItemMock ->method ('expiresAfter ' )->willReturnSelf ();
518
521
$ cache
519
522
->expects (self ::atLeastOnce ())
520
523
->method ('getItem ' )
521
- ->willReturn ($ this -> createMock (CacheItemInterface::class) );
524
+ ->willReturn ($ cacheItemMock );
522
525
523
526
$ this ->entityManager ->getConfiguration ()->setQueryCache ($ cache );
524
527
$ this ->entityManager
@@ -528,11 +531,14 @@ public function testGetQueryCacheDriverWithDefaults(): void
528
531
529
532
public function testGetQueryCacheDriverWithCacheExplicitlySet (): void
530
533
{
531
- $ cache = $ this ->createMock (CacheItemPoolInterface::class);
534
+ $ cache = $ this ->createMock (CacheItemPoolInterface::class);
535
+ $ cacheItemMock = $ this ->createMock (CacheItemInterface::class);
536
+ $ cacheItemMock ->method ('set ' )->willReturnSelf ();
537
+ $ cacheItemMock ->method ('expiresAfter ' )->willReturnSelf ();
532
538
$ cache
533
539
->expects (self ::atLeastOnce ())
534
540
->method ('getItem ' )
535
- ->willReturn ($ this -> createMock (CacheItemInterface::class) );
541
+ ->willReturn ($ cacheItemMock );
536
542
537
543
$ this ->entityManager
538
544
->createQuery ('select u from ' . CmsUser::class . ' u ' )
You can’t perform that action at this time.
0 commit comments