File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Unit tests
2+
3+ on : [push]
4+
5+ jobs :
6+ run :
7+ runs-on : [ubuntu-latest]
8+ strategy :
9+ matrix :
10+ php-versions : ['7.1', '7.2', '7.3']
11+ name : Tests - ${{ matrix.php-versions }}
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v1
15+
16+ - name : Setup PHP
17+ uses : shivammathur/setup-php@v1
18+ with :
19+ php-version : ${{ matrix.php-versions }}
20+ coverage : xdebug
21+
22+ - name : Install deps
23+ run : composer install
24+
25+ - name : Run tests
26+ run : vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.xml
27+
28+ - name : Upload code coverage
29+ uses : codecov/codecov-action@v1
30+ with :
31+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ private function getMockedProcess()
1313 $ proc = $ this ->createMock (Process::class, ['mustRun ' ]);
1414 $ proc ->expects ($ this ->once ())
1515 ->method ('mustRun ' )
16- ->willReturn ( ' rendered-pdf ' );
16+ ->will ( $ this -> returnSelf () );
1717 return $ proc ;
1818 }
1919
You can’t perform that action at this time.
0 commit comments