%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/www/varak.net/wiki.varak.net/tests/phpunit/includes/specials/
Upload File :
Create Path :
Current File : //proc/self/root/www/varak.net/wiki.varak.net/tests/phpunit/includes/specials/SpecialUploadTest.php

<?php

class SpecialUploadTest extends MediaWikiTestCase {
	/**
	 * @covers SpecialUpload::getInitialPageText
	 * @dataProvider provideGetInitialPageText
	 */
	public function testGetInitialPageText( $expected, $inputParams ) {
		$result = call_user_func_array( [ 'SpecialUpload', 'getInitialPageText' ], $inputParams );
		$this->assertEquals( $expected, $result );
	}

	public function provideGetInitialPageText() {
		return [
			[
				'expect' => "== Summary ==\nthis is a test\n",
				'params' => [
					'this is a test'
				],
			],
			[
				'expect' => "== Summary ==\nthis is a test\n",
				'params' => [
					"== Summary ==\nthis is a test",
				],
			],
		];
	}
}

Zerion Mini Shell 1.0