check( 'emptylist', [] ); // $this->check( 'emptydict', new stdClass() ); // $this->check( [ 'dict', 'string' ], "" ); $this->testOptional( [ 'emptydict', 'new1' ], new stdClass() ); // $this->check( [ 'emptydict', 1 ], new stdClass() ); $this->testOptional( [ 'emptydict', 'new1', 'blah', 2 ], new stdClass(), function () { return wfMessage( 'fail' ); } ); // $this->check( [ 'emptydict', 'newObj', 'newInt' ], 1 ); } } $wgExtensionFunctions[] = function () { $o = new TestObjectContent( null, null, true ); print_r( $o ); };