Skip to content

Commit 2a4ebc4

Browse files
authored
PhpUnit: fixes Update LayoutTest.php (OpenMage#4453)
1 parent c6d3bd8 commit 2a4ebc4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/labeler.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,8 @@
868868
'Documentation':
869869
- changed-files:
870870
- any-glob-to-any-file: [
871-
docs/*.md
872-
docs/**/*.md
871+
docs/*.md,
872+
docs/**/*.md,
873873
docs_includes/*.md
874874
]
875875

tests/unit/Mage/Core/Model/LayoutTest.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ public function provideGetBlockSingleton(): Generator
125125
public function testGetBlockSingletonError(): void
126126
{
127127
$this->expectException(\Error::class);
128-
$this->expectExceptionMessage("Class 'Mage_Invalid_Block_Type' not found");
128+
if (PHP_VERSION_ID >= 80000) {
129+
$this->expectExceptionMessage('Class "Mage_Invalid_Block_Type" not found');
130+
} else {
131+
$this->expectExceptionMessage("Class 'Mage_Invalid_Block_Type' not found");
132+
}
129133

130134
$this->subject->getBlockSingleton('invalid/type');
131135
}

0 commit comments

Comments
 (0)