Remove superfluous re- from confirmemail_body_set
[mediawiki.git] / tests / phpunit / includes / MWFunctionTest.php
bloba44f69eea35fd37f6b237e70b37117b61f4f60ce
1 <?php
3 class MWFunctionTest extends MediaWikiTestCase {
4 function testNewObjFunction() {
5 $arg1 = 'Foo';
6 $arg2 = 'Bar';
7 $arg3 = array( 'Baz' );
8 $arg4 = new ExampleObject;
10 $args = array( $arg1, $arg2, $arg3, $arg4 );
12 $newObject = new MWBlankClass( $arg1, $arg2, $arg3, $arg4 );
13 $this->assertEquals(
14 MWFunction::newObj( 'MWBlankClass', $args )->args,
15 $newObject->args
20 class MWBlankClass {
22 public $args = array();
24 function __construct( $arg1, $arg2, $arg3, $arg4 ) {
25 $this->args = array( $arg1, $arg2, $arg3, $arg4 );
29 class ExampleObject {