Index: src/wp-includes/comment.php
===================================================================
--- src/wp-includes/comment.php	(revision 46372)
+++ src/wp-includes/comment.php	(working copy)
@@ -368,13 +368,13 @@
  * @return array() {
  *     The number of comments keyed by their status.
  *
- *     @type int|string $approved            The number of approved comments.
- *     @type int|string $awaiting_moderation The number of comments awaiting moderation (a.k.a. pending).
- *     @type int|string $spam                The number of spam comments.
- *     @type int|string $trash               The number of trashed comments.
- *     @type int|string $post-trashed        The number of comments for posts that are in the trash.
- *     @type int        $total_comments      The total number of non-trashed comments, including spam.
- *     @type int        $all                 The total number of pending or approved comments.
+ *     @type int $approved            The number of approved comments.
+ *     @type int $awaiting_moderation The number of comments awaiting moderation (a.k.a. pending).
+ *     @type int $spam                The number of spam comments.
+ *     @type int $trash               The number of trashed comments.
+ *     @type int $post-trashed        The number of comments for posts that are in the trash.
+ *     @type int $total_comments      The total number of non-trashed comments, including spam.
+ *     @type int $all                 The total number of pending or approved comments.
  * }
  */
 function get_comment_count( $post_id = 0 ) {
@@ -434,7 +434,7 @@
 		}
 	}
 
-	return $comment_count;
+    return array_map('intval', $comment_count);
 }
 
 //
@@ -1321,13 +1321,13 @@
  * @return stdClass {
  *     The number of comments keyed by their status.
  *
- *     @type int|string $approved       The number of approved comments.
- *     @type int|string $moderated      The number of comments awaiting moderation (a.k.a. pending).
- *     @type int|string $spam           The number of spam comments.
- *     @type int|string $trash          The number of trashed comments.
- *     @type int|string $post-trashed   The number of comments for posts that are in the trash.
- *     @type int        $total_comments The total number of non-trashed comments, including spam.
- *     @type int        $all            The total number of pending or approved comments.
+ *     @type int $approved       The number of approved comments.
+ *     @type int $moderated      The number of comments awaiting moderation (a.k.a. pending).
+ *     @type int $spam           The number of spam comments.
+ *     @type int $trash          The number of trashed comments.
+ *     @type int $post-trashed   The number of comments for posts that are in the trash.
+ *     @type int $total_comments The total number of non-trashed comments, including spam.
+ *     @type int $all            The total number of pending or approved comments.
  * }
  */
 function wp_count_comments( $post_id = 0 ) {
Index: tests/phpunit/tests/comment/getCommentCount.php
===================================================================
--- tests/phpunit/tests/comment/getCommentCount.php	(revision 46372)
+++ tests/phpunit/tests/comment/getCommentCount.php	(working copy)
@@ -5,12 +5,12 @@
 	public function test_get_comment_count() {
 		$count = get_comment_count();
 
-		$this->assertEquals( 0, $count['approved'] );
-		$this->assertEquals( 0, $count['awaiting_moderation'] );
-		$this->assertEquals( 0, $count['spam'] );
-		$this->assertEquals( 0, $count['trash'] );
-		$this->assertEquals( 0, $count['post-trashed'] );
-		$this->assertEquals( 0, $count['total_comments'] );
+		$this->assertSame( 0, $count['approved'] );
+		$this->assertSame( 0, $count['awaiting_moderation'] );
+		$this->assertSame( 0, $count['spam'] );
+		$this->assertSame( 0, $count['trash'] );
+		$this->assertSame( 0, $count['post-trashed'] );
+		$this->assertSame( 0, $count['total_comments'] );
 	}
 
 	public function test_get_comment_count_approved() {
@@ -22,12 +22,12 @@
 
 		$count = get_comment_count();
 
-		$this->assertEquals( 1, $count['approved'] );
-		$this->assertEquals( 0, $count['awaiting_moderation'] );
-		$this->assertEquals( 0, $count['spam'] );
-		$this->assertEquals( 0, $count['trash'] );
-		$this->assertEquals( 0, $count['post-trashed'] );
-		$this->assertEquals( 1, $count['total_comments'] );
+		$this->assertSame( 1, $count['approved'] );
+		$this->assertSame( 0, $count['awaiting_moderation'] );
+		$this->assertSame( 0, $count['spam'] );
+		$this->assertSame( 0, $count['trash'] );
+		$this->assertSame( 0, $count['post-trashed'] );
+		$this->assertSame( 1, $count['total_comments'] );
 	}
 
 	public function test_get_comment_count_awaiting() {
@@ -39,12 +39,12 @@
 
 		$count = get_comment_count();
 
-		$this->assertEquals( 0, $count['approved'] );
-		$this->assertEquals( 1, $count['awaiting_moderation'] );
-		$this->assertEquals( 0, $count['spam'] );
-		$this->assertEquals( 0, $count['trash'] );
-		$this->assertEquals( 0, $count['post-trashed'] );
-		$this->assertEquals( 1, $count['total_comments'] );
+		$this->assertSame( 0, $count['approved'] );
+		$this->assertSame( 1, $count['awaiting_moderation'] );
+		$this->assertSame( 0, $count['spam'] );
+		$this->assertSame( 0, $count['trash'] );
+		$this->assertSame( 0, $count['post-trashed'] );
+		$this->assertSame( 1, $count['total_comments'] );
 	}
 
 	public function test_get_comment_count_spam() {
@@ -56,12 +56,12 @@
 
 		$count = get_comment_count();
 
-		$this->assertEquals( 0, $count['approved'] );
-		$this->assertEquals( 0, $count['awaiting_moderation'] );
-		$this->assertEquals( 1, $count['spam'] );
-		$this->assertEquals( 0, $count['trash'] );
-		$this->assertEquals( 0, $count['post-trashed'] );
-		$this->assertEquals( 1, $count['total_comments'] );
+		$this->assertSame( 0, $count['approved'] );
+		$this->assertSame( 0, $count['awaiting_moderation'] );
+		$this->assertSame( 1, $count['spam'] );
+		$this->assertSame( 0, $count['trash'] );
+		$this->assertSame( 0, $count['post-trashed'] );
+		$this->assertSame( 1, $count['total_comments'] );
 	}
 
 	public function test_get_comment_count_trash() {
@@ -73,12 +73,12 @@
 
 		$count = get_comment_count();
 
-		$this->assertEquals( 0, $count['approved'] );
-		$this->assertEquals( 0, $count['awaiting_moderation'] );
-		$this->assertEquals( 0, $count['spam'] );
-		$this->assertEquals( 1, $count['trash'] );
-		$this->assertEquals( 0, $count['post-trashed'] );
-		$this->assertEquals( 0, $count['total_comments'] );
+		$this->assertSame( 0, $count['approved'] );
+		$this->assertSame( 0, $count['awaiting_moderation'] );
+		$this->assertSame( 0, $count['spam'] );
+		$this->assertSame( 1, $count['trash'] );
+		$this->assertSame( 0, $count['post-trashed'] );
+		$this->assertSame( 0, $count['total_comments'] );
 	}
 
 	public function test_get_comment_count_post_trashed() {
@@ -90,11 +90,11 @@
 
 		$count = get_comment_count();
 
-		$this->assertEquals( 0, $count['approved'] );
-		$this->assertEquals( 0, $count['awaiting_moderation'] );
-		$this->assertEquals( 0, $count['spam'] );
-		$this->assertEquals( 0, $count['trash'] );
-		$this->assertEquals( 1, $count['post-trashed'] );
-		$this->assertEquals( 0, $count['total_comments'] );
+		$this->assertSame( 0, $count['approved'] );
+		$this->assertSame( 0, $count['awaiting_moderation'] );
+		$this->assertSame( 0, $count['spam'] );
+		$this->assertSame( 0, $count['trash'] );
+		$this->assertSame( 1, $count['post-trashed'] );
+		$this->assertSame( 0, $count['total_comments'] );
 	}
 }
Index: tests/phpunit/tests/import/import.php
===================================================================
--- tests/phpunit/tests/import/import.php	(revision 46372)
+++ tests/phpunit/tests/import/import.php	(working copy)
@@ -81,7 +81,7 @@
 		$this->assertEquals( 4, $page_count->publish );
 		$this->assertEquals( 1, $page_count->draft );
 		$comment_count = wp_count_comments();
-		$this->assertEquals( 1, $comment_count->total_comments );
+		$this->assertSame( 1, $comment_count->total_comments );
 
 		$posts = get_posts(
 			array(
@@ -245,7 +245,7 @@
 		$this->assertEquals( 4, $page_count->publish );
 		$this->assertEquals( 1, $page_count->draft );
 		$comment_count = wp_count_comments();
-		$this->assertEquals( 1, $comment_count->total_comments );
+		$this->assertSame( 1, $comment_count->total_comments );
 	}
 
 	function test_ordering_of_importers() {
