Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Jan 9, 2025
1 parent 1a5d99a commit 9b971db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
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
9 changes: 7 additions & 2 deletions tests/unit/Mage/Core/Model/LayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

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

use Error;
use Generator;
use Mage;
use Mage_Core_Model_Layout;
Expand Down Expand Up @@ -124,8 +125,12 @@ public function provideGetBlockSingleton(): Generator
*/
public function testGetBlockSingletonError(): void
{
$this->expectException(\Error::class);
$this->expectExceptionMessage("Class 'Mage_Invalid_Block_Type' not found");
$this->expectException(Error::class);
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

0 comments on commit 9b971db

Please sign in to comment.