Index: tests/phpunit/tests/upload.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/phpunit/tests/upload.php	(revision 35390)
+++ tests/phpunit/tests/upload.php	(revision )
@@ -90,4 +90,52 @@
 		$this->assertEquals( '', $info['error'] );
 	}
 
+
+
+	function test_get_max_upload_size_proper_value_zero_first() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+		$result = wp_max_upload_size(0,5);
+		$this->assertEquals(5, $result);
+	}
+
+
+	function test_get_max_upload_size_proper_value_zero_second() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+		$result = wp_max_upload_size(7,0);
+		$this->assertEquals(7, $result);
+	}
+
+	function test_get_max_upload_size_proper_value_bigger_first() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+		$result = wp_max_upload_size(70,40);
+		$this->assertEquals(40, $result);
+	}
+
+	function test_get_max_upload_size_proper_value_bigger_second() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+		$result = wp_max_upload_size(70,110);
+		$this->assertEquals(70, $result);
+	}
+
+	function test_get_max_upload_size_proper_value_equal() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+		$result = wp_max_upload_size(40,40);
+		$this->assertEquals(40, $result);
+	}
+
 }
