Index: tests/post.php
===================================================================
--- tests/post.php	(revision 1319)
+++ tests/post.php	(working copy)
@@ -694,4 +694,18 @@
 		$this->assertEquals( 1, $numpages );
 		$this->assertEquals( array( 'Page 0' ), $pages );
 	}
-}
\ No newline at end of file
+
+	function test_wp_count_posts() {
+		global $wp_post_types;
+
+		register_post_type( 'wp_count' );
+		$this->factory->post->create( array(
+			'post_type' => 'wp_count',
+			'post_author' => $this->author_id
+		) );
+		$count = wp_count_posts( 'wp_count', 'readable' );
+		$this->assertEquals( 1, $count->publish );
+		unset( $wp_post_types['wp_count'] );
+		$this->assertEquals( new stdClass, wp_count_posts( 'wp_count', 'readable' ) );
+	}
+}
