File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
tests/unit/Mage/Core/Model Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1717
1818namespace OpenMage \Tests \Unit \Mage \Core \Model ;
1919
20+ use Error ;
2021use Generator ;
2122use Mage ;
2223use 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 }
You can’t perform that action at this time.
0 commit comments