Skip to content

Commit 3e201a1

Browse files
committed
Update composer in multi-tester job
1 parent 9017883 commit 3e201a1

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/multi-tester.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
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 }}
@@ -38,7 +38,6 @@ jobs:
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

tests/Phug/FormatterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/Phug/RendererTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)