6 class MWFunctionTest
extends MediaWikiTestCase
{
7 public function testNewObjFunction() {
10 $arg3 = array( 'Baz' );
11 $arg4 = new ExampleObject
;
13 $args = array( $arg1, $arg2, $arg3, $arg4 );
15 $newObject = new MWBlankClass( $arg1, $arg2, $arg3, $arg4 );
16 $this->hideDeprecated( 'MWFunction::newObj' );
18 MWFunction
::newObj( 'MWBlankClass', $args )->args
,
26 public $args = array();
28 function __construct( $arg1, $arg2, $arg3, $arg4 ) {
29 $this->args
= array( $arg1, $arg2, $arg3, $arg4 );