Skip to content

Commit 9b971db

Browse files
committed
fixes
1 parent 1a5d99a commit 9b971db

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/labeler.yml

Lines changed: 2 additions & 2 deletions
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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
namespace OpenMage\Tests\Unit\Mage\Core\Model;
1919

20+
use Error;
2021
use Generator;
2122
use Mage;
2223
use Mage_Core_Model_Layout;
@@ -124,8 +125,12 @@ public function provideGetBlockSingleton(): Generator
124125
*/
125126
public function testGetBlockSingletonError(): void
126127
{
127-
$this->expectException(\Error::class);
128-
$this->expectExceptionMessage("Class 'Mage_Invalid_Block_Type' not found");
128+
$this->expectException(Error::class);
129+
if (PHP_VERSION_ID >= 80000) {
130+
$this->expectExceptionMessage('Class "Mage_Invalid_Block_Type" not found');
131+
} else {
132+
$this->expectExceptionMessage("Class 'Mage_Invalid_Block_Type' not found");
133+
}
129134

130135
$this->subject->getBlockSingleton('invalid/type');
131136
}

0 commit comments

Comments
 (0)