diff --git a/tests/phpunit/unit/TexVC/Nodes/DeclhTest.php b/tests/phpunit/unit/TexVC/Nodes/DeclhTest.php index d9882802c..372f614b8 100644 --- a/tests/phpunit/unit/TexVC/Nodes/DeclhTest.php +++ b/tests/phpunit/unit/TexVC/Nodes/DeclhTest.php @@ -70,9 +70,9 @@ class DeclhTest extends MediaWikiUnitTestCase { public function testSubscriptsForFontMod() { $mods = [ 'rm','it','cal','bf' ]; foreach ( $mods as $mod ) { - $f = new Declh( "\\${mod}", new TexArray( new Literal( 'a' ) ) ); - $this->assertEquals( [ "\\math${mod}{a}" ], $f->extractSubscripts(), - "Should extract subscripts for ${mod} font modification" ); + $f = new Declh( "\\{$mod}", new TexArray( new Literal( 'a' ) ) ); + $this->assertEquals( [ "\\math{$mod}{a}" ], $f->extractSubscripts(), + "Should extract subscripts for {$mod} font modification" ); } } }