File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313 strategy :
1414 matrix :
15- php : ['7.4 ', '8.2 ']
15+ php : ['8.2 ', '8.4 ']
1616 setup : ['stable']
1717
1818 name : PHP ${{ matrix.php }}
3838 - name : Install dependencies
3939 if : steps.composer-cache.outputs.cache-hit != 'true'
4040 run : |
41- composer config version 1.9.0
4241 composer require kylekatarnls/multi-tester:^2.5.2 --dev --no-update --no-interaction
4342 composer update --prefer-dist --prefer-${{ matrix.setup }} --no-progress --no-interaction
4443
Original file line number Diff line number Diff line change @@ -1354,8 +1354,6 @@ public function testDebugErrorOnRemovedFile()
13541354
13551355 try {
13561356 include $ file ;
1357- } catch (\Exception $ exception ) {
1358- $ error = $ exception ;
13591357 } catch (\Throwable $ exception ) {
13601358 $ error = $ exception ;
13611359 }
@@ -1364,6 +1362,8 @@ public function testDebugErrorOnRemovedFile()
13641362 unlink ($ file );
13651363 clearstatcache ();
13661364
1365+ self ::assertInstanceOf (\Throwable::class, $ error );
1366+
13671367 /** @var LocatedException $error */
13681368 $ error = $ formatter ->getDebugError ($ error , $ php );
13691369
Original file line number Diff line number Diff line change @@ -482,6 +482,7 @@ public function testHandleErrorInString()
482482 $ message = $ error ->getMessage ();
483483 }
484484
485+ self ::assertIsString ($ message );
485486 self ::assertStringContains (
486487 'Division by zero ' ,
487488 $ message
@@ -579,6 +580,7 @@ public function testContextLines()
579580 $ message = $ error ->getMessage ();
580581 }
581582
583+ self ::assertIsString ($ message );
582584 self ::assertStringContains ('Division by zero ' , $ message );
583585 self ::assertStringContains ('div: p=12/0 ' , $ message );
584586 self ::assertStringContains ('// line -1 ' , $ message );
You can’t perform that action at this time.
0 commit comments