diff --git a/tests/phpunit/unit/TexVC/Nodes/DeclhTest.php b/tests/phpunit/unit/TexVC/Nodes/DeclhTest.php index 7d2a7f36c..7834e573a 100644 --- a/tests/phpunit/unit/TexVC/Nodes/DeclhTest.php +++ b/tests/phpunit/unit/TexVC/Nodes/DeclhTest.php @@ -76,9 +76,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" ); } } }