File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ jobs:
2929 uses : shivammathur/setup-php@v2
3030 with :
3131 php-version : ${{ matrix.php-version }}
32- coverage : xdebug
32+ coverage : pcov
3333
3434 - name : Install dependencies
3535 run : COMPOSER_MEMORY_LIMIT=-1 composer install --dev --no-interaction
3636
3737 - name : Run tests
3838 run : |
3939 mkdir -p build/logs
40- php vendor/bin/phpunit -c phpunit.xml.dist
40+ php vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
4141
4242 - name : Upload coverage
4343 run : |
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use Rector \Config \RectorConfig ;
4+ use Rector \PHPUnit \CodeQuality \Rector \Expression \DecorateWillReturnMapWithExpectsMockRector ;
5+
6+ return RectorConfig::configure ()
7+ ->withSkip ([DecorateWillReturnMapWithExpectsMockRector::class]);
Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ public function testOnFieldSaveCallback(): void
7070
7171 $ dataContainer = $ this ->createMock (DataContainer::class);
7272 $ dataContainer
73- ->expects ($ this ->exactly (2 ))
7473 ->method ('__get ' )
7574 ->willReturnMap ([
7675 ['table ' , 'tl_table ' ],
@@ -91,7 +90,6 @@ public function testOnFieldSaveCallbackManagerUnsupported(): void
9190
9291 $ dataContainer = $ this ->createMock (DataContainer::class);
9392 $ dataContainer
94- ->expects ($ this ->exactly (2 ))
9593 ->method ('__get ' )
9694 ->willReturnMap ([
9795 ['table ' , 'tl_table ' ],
@@ -114,7 +112,6 @@ public function testOnOptionsCallback(): void
114112
115113 $ dataContainer = $ this ->createMock (DataContainer::class);
116114 $ dataContainer
117- ->expects ($ this ->exactly (2 ))
118115 ->method ('__get ' )
119116 ->willReturnMap ([
120117 ['table ' , 'tl_table ' ],
@@ -135,7 +132,6 @@ public function testOnOptionsCallbackManagerUnsupported(): void
135132
136133 $ dataContainer = $ this ->createMock (DataContainer::class);
137134 $ dataContainer
138- ->expects ($ this ->exactly (2 ))
139135 ->method ('__get ' )
140136 ->willReturnMap ([
141137 ['table ' , 'tl_table ' ],
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ public function testGetFilterOptionsWithPredefinedTagsSource(): void
142142
143143 $ dataContainer = $ this ->createMock (DataContainer::class);
144144 $ dataContainer
145- ->expects ($ this ->exactly (2 ))
146145 ->method ('__get ' )
147146 ->willReturnMap ([
148147 ['table ' , 'tl_table ' ],
@@ -183,7 +182,6 @@ public function testGetSourceRecordsCountWithPredefinedTagsSource(): void
183182
184183 $ dataContainer = $ this ->createMock (DataContainer::class);
185184 $ dataContainer
186- ->expects ($ this ->exactly (2 ))
187185 ->method ('__get ' )
188186 ->willReturnMap ([
189187 ['table ' , 'tl_table ' ],
You can’t perform that action at this time.
0 commit comments