Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhpUnit: fixes Update LayoutTest.php #4453

Merged
merged 12 commits into from
Jan 11, 2025
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -868,8 +868,8 @@
'Documentation':
- changed-files:
- any-glob-to-any-file: [
docs/*.md
docs/**/*.md
docs/*.md,
docs/**/*.md,
docs_includes/*.md
]

Expand Down
6 changes: 5 additions & 1 deletion tests/unit/Mage/Core/Model/LayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ public function provideGetBlockSingleton(): Generator
public function testGetBlockSingletonError(): void
{
$this->expectException(\Error::class);
$this->expectExceptionMessage("Class 'Mage_Invalid_Block_Type' not found");
if (PHP_VERSION_ID >= 80000) {
$this->expectExceptionMessage('Class "Mage_Invalid_Block_Type" not found');
} else {
$this->expectExceptionMessage("Class 'Mage_Invalid_Block_Type' not found");
}

$this->subject->getBlockSingleton('invalid/type');
}
Expand Down
Loading