'; public function testConstructor() { $renderer = new MathPng( 'a' ); $this->assertEquals( MathConfig::MODE_PNG, $renderer->getMode() ); } public function testOutput() { $renderer = $this->getMockBuilder( MathPng::class ) ->onlyMethods( [ 'getFallbackImage' ] ) ->getMock(); $renderer->method( 'getFallbackImage' ) ->willReturn( self::TEST_DUMMY ); $this->assertSame( self::TEST_DUMMY, $renderer->getHtmlOutput() ); } }