mediawiki-extensions-Math/tests/MathIdTest.php
Ori Livneh d9b9b06032 MWException -> Exception
Change-Id: I18da1baeb70387b96e30811a049185a264dec26d
2015-01-09 17:55:54 -08:00

18 lines
394 B
PHP

<?php
/**
* Test the Id feature
* @group Math
*/
class MathIdTest extends MediaWikiTestCase {
/**
* Checks if the id specified as attribute is set in the renderer object
*/
public function testBasics() {
define( 'RANDOM_ID', 'a_random_id' );
$renderer = MathRenderer::getRenderer( "a+b", array( 'id' => RANDOM_ID ) );
$this->assertEquals( RANDOM_ID, $renderer->getId() );
}
}