assertStringContainsString( '~', $result ); $this->assertStringContainsString( 'mover', $result ); } public function testAccentArgPassing() { $node = new Fun1( '\\widetilde', ( new Literal( 'a' ) ) ); $result = BaseParsing::accent( $node, [ 'k' => 'v' ], null, 'widetilde', '007E' ); $this->assertStringContainsString( 'assertStringStartsWith( 'assertStringContainsString( 'mover', $result ); } public function testUnderOverUnder() { $node = new Fun1( '\\overline', ( new Literal( 'a' ) ) ); $result = BaseParsing::underover( $node, [], null, 'uXXX', '00AF' ); $this->assertStringContainsString( 'munder', $result ); } public function testUnderOverDqUnder() { $node = new DQ( ( new Literal( 'a' ) ), ( new Literal( 'b' ) ) ); $result = BaseParsing::underover( $node, [], null, 'uXXX', '00AF' ); $this->assertStringContainsString( 'munder', $result ); $this->assertStringContainsString( 'mrow', $result ); } public function testUnderArgPassing() { $node = new Fun1( '\\overline', ( new Literal( 'a' ) ) ); $result = BaseParsing::underover( $node, [ 'k' => 'v' ], null, 'oXXX', '00AF' ); $this->assertStringContainsString( ' '""' ], null, 'oXXX', '00AF' ); $this->assertStringContainsString( 'k=""<script>alert("problem")', $result ); } }